Skip to content

Commit 6674c6c

Browse files
authored
Merge pull request #538 from paolobarbolini/clippy
Fix clippy warnings
2 parents 22240c0 + c32cef0 commit 6674c6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

google-apis-common/src/field_mask.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl FieldMask {
3838
/// Create a new `FieldMask` from a list of paths. These are converted to snake
3939
/// case if they aren't already.
4040
pub fn new<S: AsRef<str>>(values: &[S]) -> Self {
41-
return Self(values.iter().map(|s| snakecase(s.as_ref())).collect());
41+
Self(values.iter().map(|s| snakecase(s.as_ref())).collect())
4242
}
4343
}
4444

google-apis-common/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ impl<'a> MultiPartReader<'a> {
393393
}
394394
}
395395

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

596-
impl<'a, A, C> ResumableUploadHelper<'a, A, C>
596+
impl<A, C> ResumableUploadHelper<'_, A, C>
597597
where
598598
C: Connector,
599599
{

0 commit comments

Comments
 (0)