@snaggen to Rust • 8 months agoAnnouncing Rust 1.76.0blog.rust-lang.orgexternal-linkmessage-square23arrow-up1104arrow-down10
arrow-up1104arrow-down1external-linkAnnouncing Rust 1.76.0blog.rust-lang.org@snaggen to Rust • 8 months agomessage-square23
minus-square@owseilink1•edit-28 months agoit’s just a way to use map with a reference instead of the value, by what I understood. could be usefull for logging values in a Result so you can see it. However I think you can already do that by just mapping and returning the variable.
it’s just a way to use map with a reference instead of the value, by what I understood.
could be usefull for logging values in a Result so you can see it. However I think you can already do that by just mapping and returning the variable.