1
Fork 0

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

This commit is contained in:
GnomedDev 2024-09-18 23:01:37 +01:00
parent 5f85f73f63
commit 43b8e04d46
No known key found for this signature in database
GPG key ID: 9BF10F8372B254D1
4 changed files with 3 additions and 4 deletions

View file

@ -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;
}