From 8147cf45a2639e1f8dc94630657e9af435822974 Mon Sep 17 00:00:00 2001 From: GnomedDev Date: Wed, 18 Sep 2024 23:01:37 +0100 Subject: [PATCH] [Clippy] Swap `non_octal_unix_permissions` to use diagnostic item instead of path --- std/src/os/unix/fs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/std/src/os/unix/fs.rs b/std/src/os/unix/fs.rs index caf6980afd91b..a964db2e0ac38 100644 --- a/std/src/os/unix/fs.rs +++ b/std/src/os/unix/fs.rs @@ -334,6 +334,7 @@ pub trait PermissionsExt { /// assert_eq!(permissions.mode(), 0o644); /// ``` #[stable(feature = "fs_ext", since = "1.1.0")] + #[cfg_attr(not(test), rustc_diagnostic_item = "permissions_from_mode")] fn from_mode(mode: u32) -> Self; }