Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
geieredgar committed Jul 28, 2023
1 parent 0add52f commit b91bee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ecs/src/schedule/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl SystemSet for InternedSystemSet {
}

fn dyn_hash(&self, state: &mut dyn Hasher) {
(**self).dyn_hash(state)
(**self).dyn_hash(state);
}

fn dyn_static_ref(&self) -> Option<&'static dyn SystemSet> {
Expand Down
6 changes: 3 additions & 3 deletions crates/bevy_utils/src/label.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ macro_rules! define_label {
pub trait $label_trait_name: 'static + Send + Sync + ::std::fmt::Debug {
/// Clones this `
#[doc = stringify!($label_trait_name)]
/// `
///`.
fn dyn_clone(&self) -> Box<dyn $label_trait_name>;

/// Casts this value to a form where it can be compared with other type-erased values.
Expand Down Expand Up @@ -131,7 +131,7 @@ macro_rules! define_label {
None
}

/// Returns an `interned`(bevy_utils::intern::Interned) value corresponding to `self`.
/// Returns an [`Interned`](bevy_utils::intern::Interned) value corresponding to `self`.
fn intern(&self) -> ::bevy_utils::intern::Interned<dyn $label_trait_name>
where Self: Sized {
$interner_name.intern(self)
Expand All @@ -149,7 +149,7 @@ macro_rules! define_label {
}

fn dyn_hash(&self, state: &mut dyn ::std::hash::Hasher) {
(**self).dyn_hash(state)
(**self).dyn_hash(state);
}

fn dyn_static_ref(&self) -> Option<&'static dyn $label_trait_name> {
Expand Down

0 comments on commit b91bee9

Please sign in to comment.