Skip to content

Commit 385d485

Browse files
authored
Merge pull request RustPython#942 from Jongy/fix-unused-macros-warn
Define `os_unix_stat_inner` only when required
2 parents d14fb6e + fe37ecf commit 385d485

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vm/src/stdlib/os.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ impl StatResultRef {
357357
}
358358
}
359359

360+
#[cfg(unix)]
360361
macro_rules! os_unix_stat_inner {
361362
( $path:expr, $follow_symlinks:expr, $vm:expr) => {{
362363
let metadata = match $follow_symlinks.follow_symlinks {

0 commit comments

Comments
 (0)