Closed xyproto closed 6 years ago
The code does the same thing, but is more elegant (IMO).
According to the top answer here, it's also considered good style, for Rust: https://stackoverflow.com/questions/27961879/why-is-using-return-as-the-last-statement-in-a-function-considered-bad-style
The code does the same thing, but is more elegant (IMO).
According to the top answer here, it's also considered good style, for Rust: https://stackoverflow.com/questions/27961879/why-is-using-return-as-the-last-statement-in-a-function-considered-bad-style