1
0
mirror of https://github.com/pcvolkmer/checkbar.git synced 2025-04-19 19:16:50 +00:00

Code cleanup
All checks were successful
CI / test (push) Successful in 1m0s

This commit is contained in:
Paul-Christian Volkmer 2024-12-16 23:33:27 +01:00
parent ebb5cb7cfa
commit c83c00ace6

View File

@ -100,7 +100,7 @@ where
{ {
struct StringVisitor; struct StringVisitor;
impl<'de> Visitor<'de> for StringVisitor { impl Visitor<'_> for StringVisitor {
type Value = String; type Value = String;
fn expecting(&self, f: &mut Formatter) -> std::fmt::Result { fn expecting(&self, f: &mut Formatter) -> std::fmt::Result {
@ -124,7 +124,7 @@ where
match d.deserialize_string(StringVisitor) { match d.deserialize_string(StringVisitor) {
Ok(value) => { Ok(value) => {
return if let Ok(duration) = parse(value.as_str()) { if let Ok(duration) = parse(value.as_str()) {
Ok(duration) Ok(duration)
} else { } else {
Ok(Duration::from_secs(60)) Ok(Duration::from_secs(60))