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.
1 parent 319618d commit 8210f39Copy full SHA for 8210f39
clippy_lints/src/path_from_format.rs
@@ -17,10 +17,14 @@ declare_clippy_lint! {
17
///
18
/// ### Example
19
/// ```rust
20
+ /// use std::path::PathBuf;
21
+ /// let base_path = "/base";
22
/// PathBuf::from(format!("{}/foo/bar", base_path));
23
/// ```
24
/// Use instead:
25
26
+ /// use std::path::Path;
27
28
/// Path::new(base_path).join("foo").join("bar");
29
30
#[clippy::version = "1.62.0"]
0 commit comments