Closed storyfeet closed 6 years ago
Probably wrong version number in Cargo.toml. Check dependencies on crates.io.
what vnum should I be using?
It depends on the version of piston2d-graphics
. The version that piston2d-gfx_graphics
uses should match with the piston2d-graphics
version you use in your application code.
If you are in doubt, then use the latest version of each library. We use a tool called "Eco" to make sure that crates are published in a way such that latest versions work with each other.
I'm only etern crate-ing the piston_window , I've tried updating the version, and I get an error compiling one of it's dependencies.
error[E0507]: cannot move out of captured outer variable in an FnOnce
closure
--> /home/matthew/.cargo/registry/src/github.com-1ecc6299db9ec823/rusttype-0.4.3/src/lib.rs:314:54
|
314 | .and_then(|offset| tt::FontInfo::new(self.0, offset as usize))
| ^^^^ cannot move out of captured outer variable in an FnOnce
closure
error: aborting due to previous error
error: Could not compile rusttype
.
solved:
didn't need the mut in
board.draw(c,&mut g);
Hi I have functions that take a Parameter,
But when I try to invoke them
I get the following error
What's going on here?
should backend be private, as that seems to be where the impl is?