Commit 6918d84
committed
refactor(df): separate platform-specific logic for stat_path
Split the initialization of `stat_path` in `Filesystem::new` into distinct
`#[cfg(unix)]` and `#[cfg(windows)]` blocks. This improves readability and
ensures that Windows builds consistently use the volume ID (`dev_id`).1 parent f1c3436 commit 6918d84
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 126 | + | |
134 | 127 | | |
135 | 128 | | |
136 | 129 | | |
| 130 | + | |
137 | 131 | | |
138 | | - | |
| 132 | + | |
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
| |||
0 commit comments