chore: refactor according to clippy & clean up config #6
2 changed files with 4 additions and 2 deletions
|
@ -72,7 +72,9 @@ debug = 2
|
||||||
debug-assertions = false
|
debug-assertions = false
|
||||||
incremental = false
|
incremental = false
|
||||||
lto = 'fat'
|
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
|
overflow-checks = false
|
||||||
|
|
||||||
# do not optimize proc-macro crates = faster builds from scratch
|
# do not optimize proc-macro crates = faster builds from scratch
|
||||||
|
|
|
@ -584,8 +584,8 @@ pub async fn update_stick_states_task(
|
||||||
|
|
||||||
SIGNAL_STICK_STATE.signal(current_stick_state.clone());
|
SIGNAL_STICK_STATE.signal(current_stick_state.clone());
|
||||||
|
|
||||||
ticker.next().await;
|
|
||||||
yield_now().await;
|
yield_now().await;
|
||||||
|
ticker.next().await;
|
||||||
|
|
||||||
if let Some(new_config) = SIGNAL_CONFIG_CHANGE.try_take() {
|
if let Some(new_config) = SIGNAL_CONFIG_CHANGE.try_take() {
|
||||||
controller_config = new_config;
|
controller_config = new_config;
|
||||||
|
|
Loading…
Reference in a new issue