chore: fix Clippy warning about time::Duration (#4231)

`cargo clippy` currently generates this warning:

```
warning: `time::Duration::new` does not refer to a reachable function
 --> /home/taylor/code/atuin/clippy.toml:6:1
  |
6 | / [[disallowed-methods]]
7 | | path = "time::Duration::new"
8 | | reason = "panics on overflow; use atuin_common::time::DurationExt::try_new"
  | |___________________________________________________________________________^
  |
```

`time` 0.3.54 made `Duration` an alias of `SignedDuration` instead of a
struct in its own right, and we're on 0.3.55 now. Clippy can't resolve
the type alias, so this PR updates the path in clippy.toml to point to
`SignedDuration`.
This commit is contained in:
taylor.fish
2026-09-22 15:23:44 -07:00
committed by GitHub
parent ebeacfa9e6
commit 71a2a7a628
+1 -1
View File
@@ -4,7 +4,7 @@ reason = """panics on overflow; use atuin_common::time::DurationExt::try_new, or
Duration::from_secs when nanos are 0"""
[[disallowed-methods]]
path = "time::Duration::new"
path = "time::SignedDuration::new"
reason = "panics on overflow; use atuin_common::time::DurationExt::try_new"
[[disallowed-methods]]