Skip to content

Commit

Permalink
Merge pull request #538 from paolobarbolini/clippy
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
Byron authored Feb 1, 2025
2 parents 22240c0 + c32cef0 commit 6674c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google-apis-common/src/field_mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl FieldMask {
/// Create a new `FieldMask` from a list of paths. These are converted to snake
/// case if they aren't already.
pub fn new<S: AsRef<str>>(values: &[S]) -> Self {
return Self(values.iter().map(|s| snakecase(s.as_ref())).collect());
Self(values.iter().map(|s| snakecase(s.as_ref())).collect())
}
}

Expand Down
4 changes: 2 additions & 2 deletions google-apis-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl<'a> MultiPartReader<'a> {
}
}

impl<'a> Read for MultiPartReader<'a> {
impl Read for MultiPartReader<'_> {
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
match (
self.raw_parts.len(),
Expand Down Expand Up @@ -593,7 +593,7 @@ where
pub content_length: u64,
}

impl<'a, A, C> ResumableUploadHelper<'a, A, C>
impl<A, C> ResumableUploadHelper<'_, A, C>
where
C: Connector,
{
Expand Down

0 comments on commit 6674c6c

Please sign in to comment.