aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_list.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-03-14 12:00:23 +0100
committerAlex Auvolat <alex@adnab.me>2022-03-14 12:27:49 +0100
commitba6b56ae68d5842d814769418d484093865261aa (patch)
tree2620aadaa46718680ba6e66946ca487839335f56 /src/api/s3_list.rs
parent0af314b295f70fdf107524b08063f4d36fb4eeb6 (diff)
downloadgarage-ba6b56ae68d5842d814769418d484093865261aa.tar.gz
garage-ba6b56ae68d5842d814769418d484093865261aa.zip
Fix some new clippy lintsfix-resync
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r--src/api/s3_list.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs
index 92998159..5852fc1b 100644
--- a/src/api/s3_list.rs
+++ b/src/api/s3_list.rs
@@ -1042,12 +1042,12 @@ mod tests {
query.common.prefix = "a/".to_string();
assert_eq!(
- common_prefix(&objs.get(0).unwrap(), &query.common),
+ common_prefix(objs.get(0).unwrap(), &query.common),
Some("a/b/")
);
query.common.prefix = "a/b/".to_string();
- assert_eq!(common_prefix(&objs.get(0).unwrap(), &query.common), None);
+ assert_eq!(common_prefix(objs.get(0).unwrap(), &query.common), None);
}
#[test]
@@ -1272,7 +1272,7 @@ mod tests {
Version {
bucket_id: uuid,
key: "a".to_string(),
- uuid: uuid,
+ uuid,
deleted: false.into(),
blocks: crdt::Map::<VersionBlockKey, VersionBlock>::from_iter(blocks),
parts_etags: crdt::Map::<u64, String>::from_iter(etags),