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:
Carter Anderson 2025-07-17 14:36:24 -07:00 committed by GitHub
parent ebf6bf6ea9
commit 877d278785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -178,7 +178,7 @@ impl DefaultQueryFilters {
}
/// 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()
}

View File

@ -105,7 +105,7 @@ impl AssetBarrier {
}
/// 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();
async move {
loop {

View File

@ -72,7 +72,7 @@ fn setup(mut commands: Commands, assets: Res<AssetServer>) {
commands.spawn(button(&assets));
}
fn button(asset_server: &AssetServer) -> impl Bundle + use<> {
fn button(asset_server: &AssetServer) -> impl Bundle {
(
Node {
width: Val::Percent(100.0),

View File

@ -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}")),
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"),
Node {