And in general is there a ready to use tool to do such transformations?
cargo fix would do it, but it prefers
I think it's supposed to be handled by rustfmt and the use_try_shorthand option
@Luca Barbato https://github.com/japaric-archived/untry also exists
thank you a lot :)
The conversion isn’t always equivalent so cargo fix cannot apply that without breaking code. And not breaking code is its primary requirement.
this post really make pre-mir borrowck look bad