Re-enabled clippy.default_numeric_fallback lint.

This commit is contained in:
Filipe Rodrigues 2023-12-09 11:18:22 +00:00
parent 76b6c23bf7
commit bef4135311
2 changed files with 4 additions and 5 deletions

View File

@ -99,11 +99,10 @@ clippy.unreachable = "allow"
clippy.mem_forget = "allow"
clippy.shadow_same = "allow"
clippy.shadow_reuse = "allow"
clippy.shadow_unrelated = "allow" # TODO: Maybe check this one every once in a while? Pretty noisy though
clippy.min_ident_chars = "allow" # Useful for generics such as `f: impl FnOnce()`
clippy.single_call_fn = "allow" # It's still useful to separate blocks of code into functions
clippy.shadow_unrelated = "allow" # TODO: Maybe check this one every once in a while? Pretty noisy though
clippy.min_ident_chars = "allow" # Useful for generics such as `f: impl FnOnce()`
clippy.single_call_fn = "allow" # It's still useful to separate blocks of code into functions
clippy.float_arithmetic = "allow"
clippy.default_numeric_fallback = "allow" # TODO: This isn't very useful for floats, but might be for integers
clippy.struct_field_names = "allow"
clippy.iter_over_hash_type = "allow"

View File

@ -137,7 +137,7 @@ async fn main() -> Result<(), anyhow::Error> {
.watch
.then(|| {
// TODO: Better default?
let debouncer_timeout_ms = args.watcher_debouncer_timeout_ms.unwrap_or(0.0);
let debouncer_timeout_ms = args.watcher_debouncer_timeout_ms.unwrap_or(0.0_f64);
let debouncer_timeout = { Duration::from_secs_f64(debouncer_timeout_ms / 1000.0) };
Watcher::new(builder.subscribe_events(), debouncer_timeout)