upgrade deps (#113)
* run `cargo upgrade`
```sh
❯ cargo upgrade
Checking timr-tui's dependencies
name old req compatible latest new req
==== ======= ========== ====== =======
tokio 1.45.1 1.47.1 1.47.1 1.47.1
tokio-util 0.7.15 0.7.16 0.7.16 0.7.16
tracing-subscriber 0.3.19 0.3.20 0.3.20 0.3.20
clap 4.5.40 4.5.48 4.5.48 4.5.48
time 0.3.41 0.3.44 0.3.44 0.3.44
thiserror 2.0.12 2.0.17 2.0.17 2.0.17
Upgrading recursive dependencies
Locking 0 packages to latest Rust 1.90.0 compatible versions
note: pass `--verbose` to see 2 unchanged dependencies behind latest
note: Re-run with `--incompatible` to upgrade incompatible version requirements
note: Re-run with `--verbose` to show more dependencies
incompatible: 4 packages
latest: 8 packages
```
* fix(duration) `test_parse_duration_by_time` panics
This commit is contained in:
parent
3f4acec9f5
commit
ac2863cebc
695
Cargo.lock
generated
695
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
12
Cargo.toml
12
Cargo.toml
@ -28,20 +28,20 @@ futures = "0.3"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
strum = { version = "0.26.3", features = ["derive"] }
|
||||
tokio = { version = "1.45.1", features = ["full"] }
|
||||
tokio = { version = "1.47.1", features = ["full"] }
|
||||
tokio-stream = "0.1.17"
|
||||
tokio-util = "0.7.15"
|
||||
tokio-util = "0.7.16"
|
||||
tracing = "0.1.41"
|
||||
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
||||
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
|
||||
directories = "5.0.1"
|
||||
clap = { version = "4.5.40", features = ["derive"] }
|
||||
time = { version = "0.3.41", features = ["formatting", "local-offset", "parsing", "macros"] }
|
||||
clap = { version = "4.5.48", features = ["derive"] }
|
||||
time = { version = "0.3.44", features = ["formatting", "local-offset", "parsing", "macros"] }
|
||||
notify-rust = "4.11.7"
|
||||
rodio = { version = "0.20.1", features = [
|
||||
"symphonia-mp3",
|
||||
"symphonia-wav",
|
||||
], default-features = false, optional = true }
|
||||
thiserror = { version = "2.0.12", optional = true }
|
||||
thiserror = { version = "2.0.17", optional = true }
|
||||
|
||||
|
||||
[features]
|
||||
|
||||
@ -459,14 +459,11 @@ mod tests {
|
||||
// HH:MM - Until or Since depending on current time
|
||||
assert!(parse_duration_by_time("18:00").is_ok());
|
||||
|
||||
// MM - time in current hour returns Until
|
||||
assert!(matches!(
|
||||
parse_duration_by_time("45"),
|
||||
Ok(DirectedDuration::Until(_))
|
||||
));
|
||||
// MM - Until or Since depending on current time
|
||||
assert!(parse_duration_by_time("45").is_ok());
|
||||
|
||||
// errors
|
||||
assert!(parse_duration_by_time("60").is_err()); // invalid seconds
|
||||
assert!(parse_duration_by_time("60").is_err()); // invalid minutes
|
||||
assert!(parse_duration_by_time("24:00").is_err()); // invalid hours
|
||||
assert!(parse_duration_by_time("24:00:00").is_err()); // invalid hours
|
||||
assert!(parse_duration_by_time("2030-13-01 12:00:00").is_err()); // invalid month
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user