Last active
March 25, 2020 11:03
-
-
Save trimoq/387ef134926d67b778aaa503d65d4f5c to your computer and use it in GitHub Desktop.
Unfinished APIs lead to weird code wrapping around them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bucket | |
.put_object(&target_path, &bytes, "image/jpg") | |
.map(|_| ()) // we don't need the result since it is broken anyway | |
.map_err(|e| | |
Box::new(NetworkError::UploadPutError( | |
e.description.unwrap_or("Generic upload error".into()).into()) | |
).into() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment