snaggen to Rust · 11 months agoAnnouncing Rust 1.76.0blog.rust-lang.orgexternal-linkmessage-square23fedilinkarrow-up1104arrow-down10
arrow-up1104arrow-down1external-linkAnnouncing Rust 1.76.0blog.rust-lang.orgsnaggen to Rust · 11 months agomessage-square23fedilink
minus-squareowseilinkfedilinkarrow-up1·edit-210 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.