Bikeshed color query In Rust, I want to create a vector of length `size.x` and I...

@mcc@mastodon.social

Bikeshed color query

In Rust, I want to create a vector of length `size.x` and I want to initialize every member to a new object of type SmolBitmap. Is there a cleaner/more idiomatic/"better" way of doing it than

let mut visited:Vec<_> = (0..size.x).map(|_|SmolBitmap::new()).collect();