Skip to content

Commit 929498d

Browse files
joseph-giogeieredgar
authored andcommitted
rustfmt
1 parent 830874c commit 929498d

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

crates/bevy_app/src/app.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -778,14 +778,12 @@ impl App {
778778

779779
/// Inserts an existing sub app into the app
780780
pub fn insert_sub_app(&mut self, label: impl AppLabel, sub_app: SubApp) {
781-
self.sub_apps
782-
.insert(label.intern(), sub_app);
781+
self.sub_apps.insert(label.intern(), sub_app);
783782
}
784783

785784
/// Removes a sub app from the app. Returns [`None`] if the label doesn't exist.
786785
pub fn remove_sub_app(&mut self, label: impl AppLabel) -> Option<SubApp> {
787-
self.sub_apps
788-
.remove(&label.intern())
786+
self.sub_apps.remove(&label.intern())
789787
}
790788

791789
/// Retrieves a `SubApp` inside this [`App`] with the given label, if it exists. Otherwise returns

crates/bevy_app/src/main_schedule.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::{App, Plugin};
22
use bevy_ecs::{
3-
schedule::{ExecutorKind, Schedule, ScheduleLabel, InternedScheduleLabel},
3+
schedule::{ExecutorKind, InternedScheduleLabel, Schedule, ScheduleLabel},
44
system::{Local, Resource},
55
world::{Mut, World},
66
};

crates/bevy_ecs/src/schedule/config.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,10 +486,7 @@ impl IntoSystemSetConfig for SystemSetConfig {
486486
}
487487

488488
fn ambiguous_with<M>(mut self, set: impl IntoSystemSet<M>) -> Self {
489-
ambiguous_with(
490-
&mut self.graph_info,
491-
set.into_system_set().intern(),
492-
);
489+
ambiguous_with(&mut self.graph_info, set.into_system_set().intern());
493490
self
494491
}
495492

crates/bevy_ecs/src/schedule/schedule.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,13 @@ impl Schedules {
4141
///
4242
/// If the map already had an entry for `label`, `schedule` is inserted,
4343
/// and the old schedule is returned. Otherwise, `None` is returned.
44-
pub fn insert(
45-
&mut self,
46-
label: impl ScheduleLabel,
47-
schedule: Schedule,
48-
) -> Option<Schedule> {
44+
pub fn insert(&mut self, label: impl ScheduleLabel, schedule: Schedule) -> Option<Schedule> {
4945
self.inner.insert(label.intern(), schedule)
5046
}
5147

5248
/// Removes the schedule corresponding to the `label` from the map, returning it if it existed.
5349
pub fn remove(&mut self, label: impl ScheduleLabel) -> Option<Schedule> {
54-
self.inner.remove(&label.intern ())
50+
self.inner.remove(&label.intern())
5551
}
5652

5753
/// Removes the (schedule, label) pair corresponding to the `label` from the map, returning it if it existed.

crates/bevy_ecs/src/schedule/set.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ pub trait SystemSet: DynHash + Debug + Send + Sync + 'static {
7676
}
7777

7878
/// Returns an [`InternedSystemSet`] corresponding to `self`.
79-
fn intern(&self) -> InternedSystemSet where Self: Sized {
79+
fn intern(&self) -> InternedSystemSet
80+
where
81+
Self: Sized,
82+
{
8083
SYSTEM_SET_INTERNER.intern(self)
8184
}
8285
}
@@ -98,7 +101,10 @@ impl SystemSet for Interned<dyn SystemSet> {
98101
Some(self.0)
99102
}
100103

101-
fn intern(&self) -> InternedSystemSet where Self: Sized {
104+
fn intern(&self) -> InternedSystemSet
105+
where
106+
Self: Sized,
107+
{
102108
*self
103109
}
104110
}

0 commit comments

Comments
 (0)