Also, there is no need for Debug ({:?}) for e because it implements Display which is expanded with {}. That line should look like this: panic!("Error uploading file: {}", e);
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hm. I don't think you ran your code. It should
let mut resp
, but ideally it should beAlso, there is no need for Debug ({:?}) for
e
because it implements Display which is expanded with{}
. That line should look like this:panic!("Error uploading file: {}", e);