Commit bfb44b1
committed
Fix clippy warnings: Allow platform-dependent type conversions in fs.rs
Add #[allow(clippy::useless_conversion)] to .into() calls that are:
- Required on some platforms (macOS: st_nlink is u16)
- Redundant on others (Linux aarch64: st_nlink is u64)
This allows the code to work correctly on all platforms while
suppressing clippy warnings where the conversion is unnecessary.
Fixes:
- line 150: st_nlink.into() (u16 on macOS, u64 on Linux aarch64)
- line 169: st_ino.into() (varies by platform)1 parent e8a1918 commit bfb44b1
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| |||
0 commit comments