Remove unnecessary + use<>
(#20180)
# Objective Including `use<>` where it is not needed is abhorrent to my sensibilities ## Solution Begone foul demon!
This commit is contained in:
parent
ebf6bf6ea9
commit
877d278785
@ -178,7 +178,7 @@ impl DefaultQueryFilters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get an iterator over all of the components which disable entities when present.
|
/// Get an iterator over all of the components which disable entities when present.
|
||||||
pub fn disabling_ids(&self) -> impl Iterator<Item = ComponentId> + use<'_> {
|
pub fn disabling_ids(&self) -> impl Iterator<Item = ComponentId> {
|
||||||
self.disabling.iter().copied()
|
self.disabling.iter().copied()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ impl AssetBarrier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Wait for all [`AssetBarrierGuard`]s to be dropped asynchronously.
|
/// Wait for all [`AssetBarrierGuard`]s to be dropped asynchronously.
|
||||||
pub fn wait_async(&self) -> impl Future<Output = ()> + 'static + use<> {
|
pub fn wait_async(&self) -> impl Future<Output = ()> + 'static {
|
||||||
let shared = self.0.clone();
|
let shared = self.0.clone();
|
||||||
async move {
|
async move {
|
||||||
loop {
|
loop {
|
||||||
|
@ -72,7 +72,7 @@ fn setup(mut commands: Commands, assets: Res<AssetServer>) {
|
|||||||
commands.spawn(button(&assets));
|
commands.spawn(button(&assets));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn button(asset_server: &AssetServer) -> impl Bundle + use<> {
|
fn button(asset_server: &AssetServer) -> impl Bundle {
|
||||||
(
|
(
|
||||||
Node {
|
Node {
|
||||||
width: Val::Percent(100.0),
|
width: Val::Percent(100.0),
|
||||||
|
@ -122,7 +122,7 @@ fn on_trigger_menu(trigger: On<OpenContextMenu>, mut commands: Commands) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn context_item(text: &str, col: Srgba) -> impl Bundle + use<> {
|
fn context_item(text: &str, col: Srgba) -> impl Bundle {
|
||||||
(
|
(
|
||||||
Name::new(format!("item-{text}")),
|
Name::new(format!("item-{text}")),
|
||||||
ContextMenuItem(col),
|
ContextMenuItem(col),
|
||||||
@ -143,7 +143,7 @@ fn context_item(text: &str, col: Srgba) -> impl Bundle + use<> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn background_and_button() -> impl Bundle + use<> {
|
fn background_and_button() -> impl Bundle {
|
||||||
(
|
(
|
||||||
Name::new("background"),
|
Name::new("background"),
|
||||||
Node {
|
Node {
|
||||||
|
Loading…
Reference in New Issue
Block a user