Skip to content

Commit

Permalink
[Clippy] Swap unnecessary_owned_empty_strings to use diagnostic ite…
Browse files Browse the repository at this point in the history
…m instead of path
  • Loading branch information
GnomedDev committed Sep 19, 2024
1 parent 9edfe1d commit 1b0be2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ impl String {
/// ```
#[inline]
#[rustc_const_stable(feature = "const_string_new", since = "1.39.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "string_new")]
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
pub const fn new() -> String {
Expand Down

0 comments on commit 1b0be2a

Please sign in to comment.