Skip to content

Commit

Permalink
[Clippy] Swap non_octal_unix_permissions to use diagnostic item ins…
Browse files Browse the repository at this point in the history
…tead of path
  • Loading branch information
GnomedDev committed Sep 19, 2024
1 parent 1b0be2a commit 8147cf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions std/src/os/unix/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8147cf4

Please sign in to comment.