chore: refactor according to clippy & clean up config #6

Merged
Naxdy merged 8 commits from clippy-fixes into main 2024-04-03 16:53:52 +00:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit a19cd9cd78 - Show all commits

View file

@ -72,7 +72,9 @@ debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 1
# opt level needs to be benchmarked after every major feature
# due to the changes in binary size and alignment
opt-level = 2
overflow-checks = false
# do not optimize proc-macro crates = faster builds from scratch

View file

@ -584,8 +584,8 @@ pub async fn update_stick_states_task(
SIGNAL_STICK_STATE.signal(current_stick_state.clone());
ticker.next().await;
yield_now().await;
ticker.next().await;
if let Some(new_config) = SIGNAL_CONFIG_CHANGE.try_take() {
controller_config = new_config;