These are chat archives for rust-lang/rust
let v: Vec<&f64> = l.split(',').map(|s| s.parse::<f64>().unwrap()).collect::<Vec<&f64>>();complains that
the trait `std::iter::FromIterator<f64> is not implemented for std::vec::Vec<&f64>. Do I actually need to implement that trait, or is there a simpler way to do this?
collect::<Vec<f64>>()without the reference (and leave out / change the type ascription as well)
I'm a Rust noob and trying to make a simple program using some libraries; when I include a certain crate of dependencies that I need I get tons of errors like this:
error: macro undefined: 'warn!' --> target/debug/build/ethcore-db-a57ed8917bfb0c25/out/lib.rs:3106:25 | 3106 | warn!(target : "ipc" , | ^^^^ error: macro undefined: 'trace!' --> target/debug/build/ethcore-db-a57ed8917bfb0c25/out/lib.rs:1782:17 | 1782 | trace!(target : "ipc" , "Invoking: open_default"); | ^^^^^
it looks like an easy problem so I thought someone might know right away; google is not very helpful