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 3af383b commit 372f713Copy full SHA for 372f713
clippy_lints/src/clones_into_boxed_slices.rs
@@ -20,11 +20,11 @@ declare_clippy_lint! {
20
///
21
/// ### Example
22
/// ```no_run
23
- /// "example".to_string().to_boxed_str()
+ /// let boxed: Box<str> = "example".to_string().into_boxed_str();
24
/// ```
25
/// Use instead:
26
27
- /// Box::from("example")
+ /// let boxed: Box<str> = Box::from("example");
28
29
#[clippy::version = "1.93.0"]
30
pub CLONES_INTO_BOXED_SLICES,
0 commit comments