Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement 'Send' for diesel::result::Error #243
Comments
sgrif
closed this
in
e2d2bf3
Mar 27, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
freiguy1 commentedMar 25, 2016
I'm working on a web app using iron and there's a macro
itry!which wrapsstd::error::Errorsin iron's IronError (documentation). When attempting to useitry!on a bit of code which returns an error containing adiesel::result::ErrorI get a nasty warning about implementingSendfor an this error:this happens when trying to use
itry!(do_thing())where do_thing is:Other errors do not show the same behavior even though they don't explicitly implement
Send. Perhaps there is something in diesel's Error which isn't thread safe?