#code compiles on my friend's pc but not at mine!
19 messages · Page 1 of 1 (latest)
then something is strange with their code
ah
the option contains a vec
which has that function
seems like your code doesn't handle the option properly
try doing cargo clean and then cargo clippy again?
it is a very good linter that runs on the intermediate rust representation
it gives lots of hints and advice on how to make your code faster and more idiomatic
can you post your code?
sounds like Screen::all doesn't return the same thing for you both
might be a different dependency version
Ah, the latest version of screenshots has Screen::all return an Option<Vec>, but an older version just returns a Vec
I think your friend needs to run cargo update
to get a newer version of the crate
woo
welcome to the concept of reproducible builds haha
that's why you need to copy the Cargo.lock file if you want the exact same experience
An idea in that vein if you aren't already: Clone it from a shared repository,