brson / rust-sdl

SDL bindings for Rust
MIT License
179 stars 52 forks source link

use of filter_mapped needs to be changed? #72

Closed itdaniher closed 11 years ago

itdaniher commented 11 years ago

Looks like the inevitable march towards external iterators broke rust-sdl in more ways than one, of late.

https://github.com/mozilla/rust/commit/de0d696561a381e182c792acbe8f608c8be94c3b

Rather than have filter_mapped as a method(?) of a vector, we now have to cast(?) vectors to be an iterator via .iter() and call the filter_mapped(?) method(?)

I'm stumbling over terminology, but I think that's the general idea. If I get a chance, I'll try and fix this.

itdaniher commented 11 years ago

Compile errors pastebinned at http://itdaniher.com/p?TdEE, requires https://github.com/itdaniher/rust-sdl/commit/12be605fc74544c2e6aeb57c989db9734b99b06d to even get that far.

rossmurray commented 11 years ago

Yeah basically this needs to be replaced with .iter().filter(...).transform(...).collect<...>()

I think.