diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2022-01-10 17:47:56 -0600 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2022-01-10 18:00:47 -0600 |
| commit | 01ef7c79322ff86a6e585d379cd0b48108e4a2a4 (patch) | |
| tree | 54d9c00a14f614578df950dc32c311b9676559ad | |
| parent | 21343ab2a5c89dd881cd34986eb85487513f47d1 (diff) | |
| download | rust-01ef7c79322ff86a6e585d379cd0b48108e4a2a4.tar.gz rust-01ef7c79322ff86a6e585d379cd0b48108e4a2a4.zip | |
Fix dogfood
| -rw-r--r-- | clippy_utils/src/paths.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_utils/src/paths.rs b/clippy_utils/src/paths.rs index c06a1f826fa..288c56e9fd7 100644 --- a/clippy_utils/src/paths.rs +++ b/clippy_utils/src/paths.rs @@ -117,6 +117,7 @@ pub const PARKING_LOT_RWLOCK_WRITE_GUARD: [&str; 2] = ["parking_lot", "RwLockWri pub const PATH_BUF_AS_PATH: [&str; 4] = ["std", "path", "PathBuf", "as_path"]; pub const PATH_TO_PATH_BUF: [&str; 4] = ["std", "path", "Path", "to_path_buf"]; pub const PERMISSIONS: [&str; 3] = ["std", "fs", "Permissions"]; +#[cfg_attr(not(unix), allow(clippy::invalid_paths))] pub const PERMISSIONS_FROM_MODE: [&str; 6] = ["std", "os", "unix", "fs", "PermissionsExt", "from_mode"]; pub const POLL: [&str; 4] = ["core", "task", "poll", "Poll"]; pub const POLL_PENDING: [&str; 5] = ["core", "task", "poll", "Poll", "Pending"]; |
