mirror of
https://github.com/Zenithsiz/zbuild.git
synced 2026-02-03 22:23:53 +00:00
Re-enabled clippy.default_numeric_fallback lint.
This commit is contained in:
parent
76b6c23bf7
commit
bef4135311
@ -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"
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user