You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust uses Python's PEP8 guidelines (4-space indentation, function_name, method_name, TypeName, CONSTANT, etc.) with the line limit at 100 columns instead of 78. I don't think those Mozilla coding guidelines aren't applied at all, except for the common universal ones like using Unix newlines, ending with a newline and restricting scope when possible.
improve the suggestion of the lint `unit-arg`
Fixesrust-lang#5823Fixesrust-lang#6015
Changes
```
help: move the expression in front of the call...
|
3 | g();
|
help: ...and use a unit literal instead
|
3 | o.map_or((), |i| f(i))
|
```
into
```
help: move the expression in front of the call and replace it with the unit literal `()`
|
3 | g();
| o.map_or((), |i| f(i))
|
```
changelog: improve the suggestion of the lint `unit-arg`
According to this document :
https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style
You suggest 2 space indentations in your code, but in Rust's code you use 4 space indentation everywhere.
Is this something that could be changed or is this another exception in your coding style?
The text was updated successfully, but these errors were encountered: