Skip to content

Commit 85580df

Browse files
committed
Bugfix: drop redundant std::time:: qualifier in accent_color_linux test
Linux clippy is stricter on `unused_qualifications` (the module is `#[cfg(target_os = "linux")]`, so macOS never sees this code) and tripped on `std::time::Duration::from_secs(2)` since `Duration` is already imported at the top of the file. Use the bare `Duration::from_secs(2)`. Caught by CI on the previous push (commit 91afacb); verified locally on the UTM Ubuntu VM with `cargo clippy --all-targets --locked -- -D warnings`.
1 parent 917938e commit 85580df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/desktop/src-tauri/src/accent_color_linux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ mod tests {
244244
let elapsed = start.elapsed();
245245

246246
assert!(
247-
elapsed < std::time::Duration::from_secs(2),
247+
elapsed < Duration::from_secs(2),
248248
"read_accent_color took {elapsed:?}, expected < 2 s (PROBE_TIMEOUT={PROBE_TIMEOUT:?})",
249249
);
250250
assert!(color.starts_with('#'), "expected #rrggbb, got {color}");

0 commit comments

Comments
 (0)