Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prost-build/src/code_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl OneofField {
}
}

impl<'a> CodeGenerator<'a> {
impl CodeGenerator<'_> {
pub fn generate(
config: &mut Config,
message_graph: &MessageGraph,
Expand Down
2 changes: 1 addition & 1 deletion prost-build/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion prost-types/src/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl From<String> for Value {
}
}

impl<'a> From<&'a str> for Value {
impl From<&str> for Value {
fn from(value: &str) -> Self {
value::Kind::StringValue(value.into()).into()
}
Expand Down
2 changes: 1 addition & 1 deletion prost/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ pub mod string {
// in the buf implementation, a drop guard is used.
unsafe {
struct DropGuard<'a>(&'a mut Vec<u8>);
impl<'a> Drop for DropGuard<'a> {
impl Drop for DropGuard<'_> {
#[inline]
fn drop(&mut self) {
self.0.clear();
Expand Down