Skip to content

Commit

Permalink
[Clippy] Swap manual_main_separator_str to use diagnostic item inst…
Browse files Browse the repository at this point in the history
…ead of path
  • Loading branch information
GnomedDev committed Sep 19, 2024
1 parent a61b7b7 commit b2dc66e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ pub fn is_separator(c: char) -> bool {
///
/// For example, `/` on Unix and `\` on Windows.
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "path_main_separator")]
pub const MAIN_SEPARATOR: char = crate::sys::path::MAIN_SEP;

/// The primary separator of path components for the current platform.
Expand Down

0 comments on commit b2dc66e

Please # to comment.