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 upMysqlConnection doesn't work with r2d2-diesel #726
Comments
added a commit
that referenced
this issue
Feb 17, 2017
added a commit
that referenced
this issue
Feb 17, 2017
This comment has been minimized.
|
Cool, thanks! |
kardeiz
closed this
Feb 17, 2017
added a commit
that referenced
this issue
Feb 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kardeiz commentedFeb 17, 2017
MysqlConnectioncan't be shared between threads, which makes it impossible to use inr2d2-diesel(or presumably any multi-thread environment). This is in diesel0.11.0.My code looks like:
which fails to compile with (truncated):
I don't know if just adding
unsafe impl Send for MysqlConnection {}would fix it (if might not be safe or even compile).