snaggen to Rust · 2 years agoAnnouncing Rust 1.76.0blog.rust-lang.orgexternal-linkmessage-square23linkfedilinkarrow-up1105arrow-down10
arrow-up1105arrow-down1external-linkAnnouncing Rust 1.76.0blog.rust-lang.orgsnaggen to Rust · 2 years agomessage-square23linkfedilink
minus-squareowseilinkfedilinkarrow-up1·2 years 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.