We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03a7f9b commit b0c6da1Copy full SHA for b0c6da1
src/docs/paths_from_format.txt
@@ -5,7 +5,7 @@ Checks for `PathBuf::from(format!(..))` calls.
5
It is not OS-agnostic, and can be harder to read.
6
7
### Known Problems
8
-`.join()` introduces additional allocations that are not present when `Pathbuf::push` is
+`.join()` introduces additional allocations that are not present when `PathBuf::push` is
9
used instead.
10
11
### Example
@@ -18,5 +18,5 @@ Use instead:
18
```
19
use std::path::Path;
20
let base_path = "/base";
21
-Path::new(base_path).join("foo").join("bar");
+Path::new(&base_path).join("foo").join("bar");
22
0 commit comments