Commit
+4 -4 +/-1 browse
1 | diff --git a/src/storage/s3.rs b/src/storage/s3.rs |
2 | index cf02911..fb4d85c 100644 |
3 | --- a/src/storage/s3.rs |
4 | +++ b/src/storage/s3.rs |
5 | @@ -379,10 +379,10 @@ where |
6 | |
7 | // Workaround: https://github.com/rusoto/rusoto/issues/1936 |
8 | // Rusoto may return `Ok` when there is a failure. |
9 | - if output.location == None |
10 | - && output.e_tag == None |
11 | - && output.bucket == None |
12 | - && output.key == None |
13 | + if output.location.is_none() |
14 | + && output.e_tag.is_none() |
15 | + && output.bucket.is_none() |
16 | + && output.key.is_none() |
17 | { |
18 | return Err(RusotoError::Unknown(BufferedHttpResponse { |
19 | status: StatusCode::from_u16(500).unwrap(), |