Skip to content

Commit 490e786

Browse files
committed
Fix dogfood
1 parent 21343ab commit 490e786

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clippy_lints/src/non_octal_unix_permissions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ impl LateLintPass<'_> for NonOctalUnixPermissions {
6565
}
6666
}
6767
},
68+
#[cfg(unix)]
6869
ExprKind::Call(func, [param]) => {
6970
if_chain! {
7071
if let ExprKind::Path(ref path) = func.kind;

clippy_utils/src/paths.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub const PARKING_LOT_RWLOCK_WRITE_GUARD: [&str; 2] = ["parking_lot", "RwLockWri
117117
pub const PATH_BUF_AS_PATH: [&str; 4] = ["std", "path", "PathBuf", "as_path"];
118118
pub const PATH_TO_PATH_BUF: [&str; 4] = ["std", "path", "Path", "to_path_buf"];
119119
pub const PERMISSIONS: [&str; 3] = ["std", "fs", "Permissions"];
120+
#[cfg(unix)]
120121
pub const PERMISSIONS_FROM_MODE: [&str; 6] = ["std", "os", "unix", "fs", "PermissionsExt", "from_mode"];
121122
pub const POLL: [&str; 4] = ["core", "task", "poll", "Poll"];
122123
pub const POLL_PENDING: [&str; 5] = ["core", "task", "poll", "Poll", "Pending"];

0 commit comments

Comments
 (0)