Skip to content

Commit fee215b

Browse files
authored
Fix redundant type on deserialize-struct.md
From clippy linting: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
1 parent 66d53ef commit fee215b

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)