chore: Rust 2024 edition
Set the formatting style to 2021 edition to avoid disrupting existing work. Remove when possible.
This commit is contained in:
parent
35d781dc1e
commit
7f7ab8bcbe
19 changed files with 494 additions and 506 deletions
|
|
@ -53,7 +53,7 @@ fn toplevel_ensure_initial_configure(
|
|||
}
|
||||
|
||||
fn xdg_popup_ensure_initial_configure(popup: &PopupKind) {
|
||||
if let PopupKind::Xdg(ref popup) = popup {
|
||||
if let PopupKind::Xdg(popup) = popup {
|
||||
let initial_configure_sent = with_states(popup.wl_surface(), |states| {
|
||||
states
|
||||
.data_map
|
||||
|
|
|
|||
|
|
@ -72,10 +72,7 @@ impl State {
|
|||
|
||||
if offset_x > 0 || offset_y > 0 {
|
||||
for (output, conf) in conf.iter_mut() {
|
||||
if let OutputConfiguration::Enabled {
|
||||
ref mut position, ..
|
||||
} = conf
|
||||
{
|
||||
if let OutputConfiguration::Enabled { position, .. } = conf {
|
||||
let current_config = output
|
||||
.user_data()
|
||||
.get::<RefCell<OutputConfig>>()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ pub fn set_all_surfaces_dpms_on(state: &mut State) {
|
|||
}
|
||||
|
||||
fn kms_surfaces(state: &mut State) -> impl Iterator<Item = &mut Surface> {
|
||||
if let BackendData::Kms(ref mut kms_state) = &mut state.backend {
|
||||
if let BackendData::Kms(kms_state) = &mut state.backend {
|
||||
Some(
|
||||
kms_state
|
||||
.drm_devices
|
||||
|
|
|
|||
|
|
@ -209,7 +209,10 @@ where
|
|||
.push((obj.downgrade(), instance));
|
||||
} else {
|
||||
let _ = data_init.init(cosmic_toplevel, ToplevelHandleStateInner::empty());
|
||||
error!(?foreign_toplevel, "Toplevel for foreign-toplevel-list not registered for cosmic-toplevel-info.");
|
||||
error!(
|
||||
?foreign_toplevel,
|
||||
"Toplevel for foreign-toplevel-list not registered for cosmic-toplevel-info."
|
||||
);
|
||||
}
|
||||
}
|
||||
zcosmic_toplevel_info_v1::Request::Stop => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue