aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r--src/api/s3_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs
index 9e6bc0f5..f2b49a1d 100644
--- a/src/api/s3_list.rs
+++ b/src/api/s3_list.rs
@@ -66,7 +66,7 @@ pub async fn handle_list(
let relative_key = &object.key[prefix.len()..];
relative_key
.find(delimiter)
- .and_then(move |i| Some(&object.key[..prefix.len() + i + delimiter.len()]))
+ .map(|i| &object.key[..prefix.len() + i + delimiter.len()])
} else {
None
};