aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/s3_copy.rs')
-rw-r--r--src/api/s3_copy.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/s3_copy.rs b/src/api/s3_copy.rs
index 187fe347..7069489b 100644
--- a/src/api/s3_copy.rs
+++ b/src/api/s3_copy.rs
@@ -33,8 +33,7 @@ pub async fn handle_copy(
.versions()
.iter()
.rev()
- .filter(|v| v.is_complete())
- .next()
+ .find(|v| v.is_complete())
.ok_or(Error::NotFound)?;
let source_last_state = match &source_last_v.state {