diff options
Diffstat (limited to 'vendor/prost-build/src/path.rs')
| -rw-r--r-- | vendor/prost-build/src/path.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/prost-build/src/path.rs b/vendor/prost-build/src/path.rs index f6897005..bc33fc44 100644 --- a/vendor/prost-build/src/path.rs +++ b/vendor/prost-build/src/path.rs @@ -3,7 +3,7 @@ use std::iter; /// Maps a fully-qualified Protobuf path to a value using path matchers. -#[derive(Debug, Default)] +#[derive(Clone, Debug, Default)] pub(crate) struct PathMap<T> { // insertion order might actually matter (to avoid warning about legacy-derive-helpers) // see: https://doc.rust-lang.org/rustc/lints/listing/warn-by-default.html#legacy-derive-helpers @@ -92,7 +92,7 @@ impl<'a, T> std::iter::Iterator for Iter<'a, T> { } } -impl<'a, T> std::iter::FusedIterator for Iter<'a, T> {} +impl<T> std::iter::FusedIterator for Iter<'_, T> {} /// Given a fully-qualified path, returns a sequence of paths: /// - the path itself |
