We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fn new<P: AsRef<Path>>(location: P) -> Self { }
Placing the cursor on P: AsRef<Path> or on the P of location: P should trigger an assist to change this to
P: AsRef<Path>
P
location: P
fn new(location: impl AsRef<Path>) -> Self { }
We already have an assist replace impl trait with generic that does the opposite.
replace impl trait with generic