[Clippy] Swap manual_main_separator_str to use diagnostic item instead of path

This commit is contained in:
GnomedDev
2024-09-18 21:24:42 +01:00
parent afe7907914
commit 037b9784b6
4 changed files with 4 additions and 3 deletions

View File

@@ -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.