remove needless return statements

This commit is contained in:
daniel.eades 2023-11-16 17:26:18 +00:00 committed by Ashley Wulber
parent 2141230229
commit 94f9879a39
2 changed files with 3 additions and 3 deletions

View file

@ -64,7 +64,7 @@ async fn start_listening(
}
None => {
_ = output.send(WaylandUpdate::Finished).await;
return State::Finished;
State::Finished
}
}
}

View file

@ -156,7 +156,7 @@ impl cosmic::Application for Power {
self.id_ctr += 1;
let id = window::Id(self.id_ctr);
self.action_to_confirm = Some((id, action, COUNTDOWN_LENGTH));
return get_layer_surface(SctkLayerSurfaceSettings {
get_layer_surface(SctkLayerSurfaceSettings {
id,
keyboard_interactivity: KeyboardInteractivity::None,
anchor: Anchor::all(),
@ -164,7 +164,7 @@ impl cosmic::Application for Power {
size: Some((None, None)),
size_limits: Limits::NONE.min_width(1.0).min_height(1.0),
..Default::default()
});
})
}
Message::Zbus(result) => {
if let Err(e) = result {