Skip to content

Commit c76b062

Browse files
authored
Small fixes (#155)
* Update readme * fix clippy * fix more clippy
1 parent 7a7299d commit c76b062

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
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_mod_scripting_common/src/input.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,6 @@ impl VisitSimpleType<Type> for TypeConstructorVisitor {
540540
#[derive(FromDeriveInput)]
541541
#[darling(attributes(proxy), forward_attrs(allow, doc, cfg))]
542542
#[allow(clippy::manual_unwrap_or_default)]
543-
544543
pub struct ProxyInput {
545544
/// The name of the type for which we are generating a proxy
546545
pub ident: syn::Ident,

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
}

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ The languages currently supported are as follows:
4141
|Language| Support Level | Documentation Generation |
4242
|----|----|----|
4343
|Lua|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
44+
|Lua51|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
45+
|Lua52|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
46+
|Lua53|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
47+
|Lua54|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
48+
|Luajit|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
49+
|Luajit52|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
50+
|Luau|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
51+
|Teal|4|[Yes](https://makspll.github.io/bevy_mod_scripting_lua/latest/)|
4452
|Rhai|2|No|
4553
|Rune|1|No|
4654

0 commit comments

Comments
 (0)