Commit 7dbf40b
authored
Fix
#22560 added this code:
```rust
.map(|file| GuardedFile {
file,
#[cfg(not(target_os = "windows"))]
_guard,
#[cfg(target_os = "windows")]
_lifetime: PhantomData::default(),
})
```
But clippy says no!
```
error: use of `default` to create a unit struct
--> crates\bevy_asset\src\io\file\file_asset.rs:94:28
|
94 | _lifetime: PhantomData::default(),
| ^^^^^^^^^^^-----------
| |
| help: remove this call to `default`
|
```
## Testing
Tested on Win10 only.
```
cargo run --example asset_loading
```FileAssetReader clippy on Windows (#22648)1 parent 9b9a070 commit 7dbf40b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments