From f821768e628c040a9a993a02b50209fff8b4d775 Mon Sep 17 00:00:00 2001
From: akimakinai <105044389+akimakinai@users.noreply.github.com>
Date: Sun, 20 Oct 2024 01:59:58 +0900
Subject: [PATCH] Resolve unused_qualifications warnings (#16001)
# Objective
Fixes the following warning when compiling to wasm.
```
warning: unnecessary qualification
--> crates\bevy_asset\src\io\mod.rs:733:19
|
733 | _cx: &mut core::task::Context<'_>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: requested on the command line with `-W unused-qualifications`
help: remove the unnecessary path segments
|
733 - _cx: &mut core::task::Context<'_>,
733 + _cx: &mut Context<'_>,
|
```
## Solution
- Removes the qualification.
---
crates/bevy_asset/src/io/mod.rs | 5 +----
crates/bevy_tasks/src/wasm_task.rs | 9 +++------
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/crates/bevy_asset/src/io/mod.rs b/crates/bevy_asset/src/io/mod.rs
index 735c7527ca..948382ca31 100644
--- a/crates/bevy_asset/src/io/mod.rs
+++ b/crates/bevy_asset/src/io/mod.rs
@@ -728,10 +728,7 @@ struct EmptyPathStream;
impl Stream for EmptyPathStream {
type Item = PathBuf;
- fn poll_next(
- self: Pin<&mut Self>,
- _cx: &mut core::task::Context<'_>,
- ) -> Poll