Skip to content

Commit

Permalink
fix clippy warnings (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
houqp authored Feb 28, 2022
1 parent f5e4b5f commit b9e170c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rust/src/delta_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl DeltaConfig {
.configuration
.get(&self.key)
.and_then(|opt| opt.as_deref())
.unwrap_or_else(|| self.default.as_str())
.unwrap_or(self.default.as_str())
.to_string()
}
}
Expand Down
2 changes: 1 addition & 1 deletion rust/src/storage/s3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ impl StorageBackend for S3StorageBackend {
.next_continuation_token
.map(|t| ContinuationToken::Value(Some(t)))
.unwrap_or(ContinuationToken::End);
ctx.obj_iter = result.contents.unwrap_or_else(Vec::new).into_iter();
ctx.obj_iter = result.contents.unwrap_or_default().into_iter();
ctx.obj_iter
.next()
.map(|obj| (try_object_meta_from(&ctx.bucket, obj), ctx))
Expand Down

0 comments on commit b9e170c

Please sign in to comment.