diff --git a/crates/bevy_event_priority/src/lib.rs b/crates/bevy_event_priority/src/lib.rs index 98e7546ed8..9dffb1bec9 100644 --- a/crates/bevy_event_priority/src/lib.rs +++ b/crates/bevy_event_priority/src/lib.rs @@ -89,7 +89,7 @@ pub struct PriorityIterator<'w, E: PriorityEvent> { events: &'w mut PriorityEvents, } -impl<'w, E: PriorityEvent> Iterator for PriorityIterator<'w, E> { +impl Iterator for PriorityIterator<'_, E> { type Item = E; fn next(&mut self) -> Option { @@ -108,7 +108,7 @@ impl<'w, E: PriorityEvent> Iterator for PriorityIterator<'w, E> { } } -impl<'s, E: PriorityEvent> PriorityEventReader<'_, 's, E> { +impl PriorityEventReader<'_, '_, E> { /// Iterates over events this reader has not seen yet, while also clearing them. /// Will not remove any events of priority lower than min (0 is highest, inf is lowest) /// but will discard events of higher priority @@ -140,7 +140,7 @@ pub struct PriorityEventWriter<'w, 's, E: PriorityEvent> { marker: PhantomData<&'s usize>, } -impl<'w, 's, E: PriorityEvent> PriorityEventWriter<'w, 's, E> { +impl PriorityEventWriter<'_, '_, E> { pub fn send(&mut self, event: E, prio: u32) { self.events.events.push(EventInstance::new(event, prio)); } diff --git a/crates/bevy_mod_scripting_common/src/input.rs b/crates/bevy_mod_scripting_common/src/input.rs index 4ba284dd93..2547c91823 100644 --- a/crates/bevy_mod_scripting_common/src/input.rs +++ b/crates/bevy_mod_scripting_common/src/input.rs @@ -540,7 +540,6 @@ impl VisitSimpleType for TypeConstructorVisitor { #[derive(FromDeriveInput)] #[darling(attributes(proxy), forward_attrs(allow, doc, cfg))] #[allow(clippy::manual_unwrap_or_default)] - pub struct ProxyInput { /// The name of the type for which we are generating a proxy pub ident: syn::Ident, diff --git a/crates/bevy_script_api/src/sub_reflect.rs b/crates/bevy_script_api/src/sub_reflect.rs index 1d9f898692..fcd5f55dd6 100644 --- a/crates/bevy_script_api/src/sub_reflect.rs +++ b/crates/bevy_script_api/src/sub_reflect.rs @@ -290,9 +290,9 @@ impl ReflectionPath { ) -> Result<&'a mut dyn Reflect, ReflectionError> { if let Some(first) = self.accesses.first() { if self.accesses.len() > 1 { - return self.accesses[1..] + self.accesses[1..] .iter() - .try_fold(first.sub_ref_mut(ref_)?, |a, access| access.sub_ref_mut(a)); + .try_fold(first.sub_ref_mut(ref_)?, |a, access| access.sub_ref_mut(a)) } else { first.sub_ref_mut(ref_) } diff --git a/readme.md b/readme.md index e983242cc5..7e62cfd51d 100644 --- a/readme.md +++ b/readme.md @@ -41,6 +41,14 @@ The languages currently supported are as follows: |Language| Support Level | Documentation Generation | |----|----|----| |Lua|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Lua51|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Lua52|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Lua53|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Lua54|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Luajit|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Luajit52|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Luau|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| +|Teal|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)| |Rhai|2|No| |Rune|1|No|