1
0
mirror of https://github.com/pcvolkmer/checkbar.git synced 2025-04-19 11:06: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;
impl<'de> Visitor<'de> for StringVisitor {
impl Visitor<'_> for StringVisitor {
type Value = String;
fn expecting(&self, f: &mut Formatter) -> std::fmt::Result {
@ -124,7 +124,7 @@ where
match d.deserialize_string(StringVisitor) {
Ok(value) => {
return if let Ok(duration) = parse(value.as_str()) {
if let Ok(duration) = parse(value.as_str()) {
Ok(duration)
} else {
Ok(Duration::from_secs(60))