These are chat archives for rust-lang/rust
Selfunless I might somehow lose track of which type it's for, in which case naming it helps.
newthat you can't easily tell who it belongs to. I haven't yet.)
expected fn pointer, found fn item
if so, how do you indicate the generic type of a function that you want to pass into , for example
IntoIterator, so you can iter its items by move.
let key_value_pairs: Vec<_> = hash_map.into_iter().collect();
any hints for this one?
let ingrs: Vec<Vec<String>> = ... ingrs.sort_unstable_by_key(|li| li); // cannot move out of borrowed content
Do you really need to copy the inner string for use as key when sorting?