refactor: fix new clippy warnings

This commit is contained in:
Jake Stanger
2023-06-29 16:57:47 +01:00
parent 27f920d012
commit cc181a8b6d
13 changed files with 42 additions and 43 deletions

View File

@@ -151,9 +151,8 @@ where
lock!(data.inner).current_info = Some(pending_info);
}
if !lock!(data.inner).initial_done {
lock!(data.inner).initial_done = true;
state.new_handle(
if lock!(data.inner).initial_done {
state.update_handle(
conn,
qh,
ToplevelHandle {
@@ -161,7 +160,8 @@ where
},
);
} else {
state.update_handle(
lock!(data.inner).initial_done = true;
state.new_handle(
conn,
qh,
ToplevelHandle {