diff options
-rw-r--r-- | src/api/s3_list.rs | 2 |
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 }; |