Skip to content

Commit a6e7615

Browse files
Merge pull request #306 from SierraSoftworks/dependabot/cargo/croner-3.0.0
chore(deps): Bump croner from 2.2.0 to 3.0.0
2 parents 724407b + 6e8232c commit a6e7615

3 files changed

Lines changed: 100 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 97 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async-stream = "0.3.6"
88
async-trait = "0.1.89"
99
chrono = { version = "0.4.41", features = ["serde"] }
1010
clap = { version = "4.5.45", features = ["derive", "string"] }
11-
croner = "2.2.0"
11+
croner = "3.0.0"
1212
ctrlc = "3.4.7"
1313
gix = { version = "0.73.0", features = [
1414
"blocking-http-transport-reqwest-rust-tls",

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use serde::{Deserialize, Deserializer};
2+
use std::str::FromStr;
23

34
use crate::{errors, policy::BackupPolicy, Args};
45

@@ -40,8 +41,7 @@ where
4041
{
4142
if let Some(s) = Deserialize::deserialize(deserializer)? {
4243
let s: String = s;
43-
return croner::Cron::new(&s)
44-
.parse()
44+
return croner::Cron::from_str(&s)
4545
.map_err(serde::de::Error::custom)
4646
.map(Some);
4747
}

0 commit comments

Comments
 (0)