Re:Apt Rust requirement raises questions
by dragonwriter on Tuesday November 25, 2025 @12:15PM
(#46048054)
Well, the solution usually isn't in syntax, but it often is solved by way of code formatters, which can normalize the syntax to a preferred form among several equivalent options.
[ Parent
| on HN ]
Re:Apt Rust requirement raises questions
by steveklabnik on Tuesday November 25, 2025 @12:20PM
(#46048107)
I certainly would support rustfmt turning those redundant forms into the simpler one.
Re:Apt Rust requirement raises questions
by estebank on Tuesday November 25, 2025 @01:59PM
(#46049352)
I suspect rustfmt would consider this out of scope, but there should be a more... "adventurous" code formatter that does more opinionated changes. On the other hand, you could write a clippy lint today and rely on rustfix instead