Skip to content

Commit 02d7241

Browse files
committed
fix clippy
1 parent a157789 commit 02d7241

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/bevy_event_priority/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub struct PriorityIterator<'w, E: PriorityEvent> {
8989
events: &'w mut PriorityEvents<E>,
9090
}
9191

92-
impl<'w, E: PriorityEvent> Iterator for PriorityIterator<'w, E> {
92+
impl<E: PriorityEvent> Iterator for PriorityIterator<'_, E> {
9393
type Item = E;
9494

9595
fn next(&mut self) -> Option<Self::Item> {
@@ -108,7 +108,7 @@ impl<'w, E: PriorityEvent> Iterator for PriorityIterator<'w, E> {
108108
}
109109
}
110110

111-
impl<'s, E: PriorityEvent> PriorityEventReader<'_, 's, E> {
111+
impl<E: PriorityEvent> PriorityEventReader<'_, '_, E> {
112112
/// Iterates over events this reader has not seen yet, while also clearing them.
113113
/// Will not remove any events of priority lower than min (0 is highest, inf is lowest)
114114
/// but will discard events of higher priority
@@ -140,7 +140,7 @@ pub struct PriorityEventWriter<'w, 's, E: PriorityEvent> {
140140
marker: PhantomData<&'s usize>,
141141
}
142142

143-
impl<'w, 's, E: PriorityEvent> PriorityEventWriter<'w, 's, E> {
143+
impl<E: PriorityEvent> PriorityEventWriter<'_, '_, E> {
144144
pub fn send(&mut self, event: E, prio: u32) {
145145
self.events.events.push(EventInstance::new(event, prio));
146146
}

crates/bevy_script_api/src/sub_reflect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ impl ReflectionPath {
290290
) -> Result<&'a mut dyn Reflect, ReflectionError> {
291291
if let Some(first) = self.accesses.first() {
292292
if self.accesses.len() > 1 {
293-
return self.accesses[1..]
293+
self.accesses[1..]
294294
.iter()
295-
.try_fold(first.sub_ref_mut(ref_)?, |a, access| access.sub_ref_mut(a));
295+
.try_fold(first.sub_ref_mut(ref_)?, |a, access| access.sub_ref_mut(a))
296296
} else {
297297
first.sub_ref_mut(ref_)
298298
}

0 commit comments

Comments
 (0)