Skip to content

Commit 919d28d

Browse files
authored
Merge pull request #165 from academiaresf/patch-1
Fix redundant type on deserialize-struct.md
2 parents 66d53ef + fee215b commit 919d28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_src/deserialize-struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl<'de> Deserialize<'de> for Duration {
129129
}
130130
}
131131

132-
const FIELDS: &'static [&'static str] = &["secs", "nanos"];
132+
const FIELDS: &[&str] = &["secs", "nanos"];
133133
deserializer.deserialize_struct("Duration", FIELDS, DurationVisitor)
134134
}
135135
}

0 commit comments

Comments
 (0)