Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
maniwani committed Jul 19, 2023
1 parent c397c2f commit 1c33f7d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion crates/bevy_ecs/src/schedule/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ enum SystemSetKind {

/// Type-elided struct whose methods return the same values as its original [`SystemSet`].
#[derive(Clone, Copy, Eq, PartialEq, Hash)]

pub struct SystemSetUntyped {
id: SystemSetId,
kind: SystemSetKind,
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/world/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ impl World {
self.try_schedule_scope(label, |world, sched| sched.run(world))
}

/// Runs the [`Schedule`] associated with the `id` a single time.
/// Runs the [`Schedule`] associated with the `label` a single time.
///
/// The [`Schedule`] is fetched from the [`Schedules`] resource of the world by its label,
/// and system state is cached.
Expand Down
2 changes: 0 additions & 2 deletions crates/bevy_macro_utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ pub fn ensure_no_collision(value: Ident, haystack: TokenStream) -> Ident {
/// - `input`: The [`syn::DeriveInput`] for struct that is deriving the label trait
/// - `trait_path`: The path [`syn::Path`] to the label trait
pub fn derive_label(input: syn::DeriveInput, trait_path: &syn::Path) -> TokenStream {
//let bevy_utils_path = BevyManifest::default().get_path("bevy_utils");

let ident = input.ident;
let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl();
let mut where_clause = where_clause.cloned().unwrap_or_else(|| syn::WhereClause {
Expand Down

0 comments on commit 1c33f7d

Please sign in to comment.