mirror of
https://github.com/pcvolkmer/checkbar.git
synced 2025-07-02 22:32:53 +00:00
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user