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 updiesel::migrations::run_migrations has a weird type signature #593
Comments
This comment has been minimized.
|
It's working without the need of having a box. |
This comment has been minimized.
|
That only works because the references there are |
added a commit
that referenced
this issue
Feb 2, 2017
sgrif
referenced this issue
Feb 2, 2017
Merged
Remove the implicit `'static` bound from `run_migrations` #606
sgrif
closed this
in
#606
Feb 2, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jethrogb commentedJan 28, 2017
•
edited
List: IntoIterator<Item=M>, M: Deref<Target=Migration>means that you can't pass in a slice of&Migration. Arrays don't implement IntoIterator. This means you have to allocate a container of references, but that's not possible because references passed in need to be 'static. So, you need to pass in a container of boxes.