snaggen@programming.dev to Rust@programming.dev · 9 months agoAnnouncing Rust 1.76.0blog.rust-lang.orgexternal-linkmessage-square23fedilinkarrow-up199arrow-down10cross-posted to: rust@lemmit.online
arrow-up199arrow-down1external-linkAnnouncing Rust 1.76.0blog.rust-lang.orgsnaggen@programming.dev to Rust@programming.dev · 9 months agomessage-square23fedilinkcross-posted to: rust@lemmit.online
minus-squareowsei@programming.devlinkfedilinkarrow-up1·edit-29 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.