We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299b837 commit 354b63eCopy full SHA for 354b63e
clippy_lints/src/paths_from_format.rs
@@ -18,7 +18,7 @@ declare_clippy_lint! {
18
/// It is not OS-agnostic, and can be harder to read.
19
///
20
/// ### Known Problems
21
- /// `.join()` introduces additional allocations that are not present when `Pathbuf::push` is
+ /// `.join()` introduces additional allocations that are not present when `PathBuf::push` is
22
/// used instead.
23
24
/// ### Example
@@ -31,7 +31,7 @@ declare_clippy_lint! {
31
/// ```rust
32
/// use std::path::Path;
33
/// let base_path = "/base";
34
- /// Path::new(base_path).join("foo").join("bar");
+ /// Path::new(&base_path).join("foo").join("bar");
35
/// ```
36
#[clippy::version = "1.62.0"]
37
pub PATHS_FROM_FORMAT,
0 commit comments