Show More
@@ -113,7 +113,7 const fn can_populate_mmap() -> bool { | |||||
113 |
|
113 | |||
114 | /// There is a of populating mmaps for Windows, but it would need testing. |
|
114 | /// There is a of populating mmaps for Windows, but it would need testing. | |
115 | #[cfg(not(target_os = "linux"))] |
|
115 | #[cfg(not(target_os = "linux"))] | |
116 | const fn can_populate_mmap() { |
|
116 | const fn can_populate_mmap() -> bool { | |
117 | false |
|
117 | false | |
118 | } |
|
118 | } | |
119 |
|
119 |
@@ -37,7 +37,8 fn get_umask() -> u32 { | |||||
37 | // setting it? Doesn't this affect all threads in this tiny window? |
|
37 | // setting it? Doesn't this affect all threads in this tiny window? | |
38 | let mask = libc::umask(0); |
|
38 | let mask = libc::umask(0); | |
39 | libc::umask(mask); |
|
39 | libc::umask(mask); | |
40 | mask & 0o777 |
|
40 | #[allow(clippy::useless_conversion)] | |
|
41 | (mask & 0o777).into() | |||
41 | }) |
|
42 | }) | |
42 | } |
|
43 | } | |
43 |
|
44 |
General Comments 0
You need to be logged in to leave comments.
Login now