mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
Merge #9534
9534: minor: one more usless type r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
@@ -304,6 +304,7 @@ More generally, always prefer types on the left
|
||||
&[T] &Vec<T>
|
||||
&str &String
|
||||
Option<&T> &Option<T>
|
||||
&Path &PathBuf
|
||||
```
|
||||
|
||||
**Rationale:** types on the left are strictly more general.
|
||||
|
||||
Reference in New Issue
Block a user