Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed May 27, 2022
1 parent 63c284f commit aa5178e
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_reflect/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl ArrayInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the array.
Expand All @@ -87,7 +87,7 @@ impl ArrayInfo {
///
/// [type name]: std::any::type_name
pub fn item_type_name(&self) -> &'static str {
&self.item_type_name
self.item_type_name
}

/// The [`TypeId`] of the array item.
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_reflect/src/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl NamedField {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the field.
Expand Down Expand Up @@ -69,7 +69,7 @@ impl UnnamedField {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the field.
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_reflect/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl ListInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the list.
Expand All @@ -71,7 +71,7 @@ impl ListInfo {
///
/// [type name]: std::any::type_name
pub fn item_type_name(&self) -> &'static str {
&self.item_type_name
self.item_type_name
}

/// The [`TypeId`] of the list item.
Expand Down
6 changes: 3 additions & 3 deletions crates/bevy_reflect/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl MapInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the map.
Expand All @@ -90,7 +90,7 @@ impl MapInfo {
///
/// [type name]: std::any::type_name
pub fn key_type_name(&self) -> &'static str {
&self.key_type_name
self.key_type_name
}

/// The [`TypeId`] of the key.
Expand All @@ -107,7 +107,7 @@ impl MapInfo {
///
/// [type name]: std::any::type_name
pub fn value_type_name(&self) -> &'static str {
&self.value_type_name
self.value_type_name
}

/// The [`TypeId`] of the value.
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_reflect/src/struct_trait.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl StructInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the struct.
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_reflect/src/tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl TupleInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the tuple.
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_reflect/src/tuple_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl TupleStructInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the tuple struct.
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_reflect/src/type_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl ValueInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the value.
Expand Down Expand Up @@ -124,7 +124,7 @@ impl DynamicInfo {
///
/// [type name]: std::any::type_name
pub fn type_name(&self) -> &'static str {
&self.type_name
self.type_name
}

/// The [`TypeId`] of the dynamic value.
Expand Down

0 comments on commit aa5178e

Please sign in to comment.