Skip to content

Commit

Permalink
Merge pull request #50 from swsnr/elide-lifetimes
Browse files Browse the repository at this point in the history
Elide superfluous lifetimes
  • Loading branch information
swsnr authored Dec 1, 2024
2 parents 7560406 + 903bf12 commit c245b51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl PutAsFieldValue for &Arguments<'_> {
}
}

impl<'a> PutAsFieldValue for Value<'a> {
impl PutAsFieldValue for Value<'_> {
fn put_field_value(self, buffer: &mut Vec<u8>) {
// TODO: We can probably write the value more efficiently by visiting it?
write!(buffer, "{}", self).unwrap()
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub fn current_exe_identifier() -> Option<String> {

struct WriteKeyValues<'a>(&'a mut Vec<u8>);

impl<'a, 'kvs> VisitSource<'kvs> for WriteKeyValues<'a> {
impl<'kvs> VisitSource<'kvs> for WriteKeyValues<'_> {
fn visit_pair(&mut self, key: Key<'kvs>, value: Value<'kvs>) -> Result<(), Error> {
put_field_length_encoded(self.0, FieldName::WriteEscaped(key.as_str()), value);
Ok(())
Expand Down

0 comments on commit c245b51

Please sign in to comment.