Skip to content

Commit

Permalink
Small fixes (#155)
Browse files Browse the repository at this point in the history
* Update readme

* fix clippy

* fix more clippy
  • Loading branch information
makspll authored Dec 3, 2024
1 parent 7a7299d commit c76b062
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_event_priority/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub struct PriorityIterator<'w, E: PriorityEvent> {
events: &'w mut PriorityEvents<E>,
}

impl<'w, E: PriorityEvent> Iterator for PriorityIterator<'w, E> {
impl<E: PriorityEvent> Iterator for PriorityIterator<'_, E> {
type Item = E;

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

impl<'s, E: PriorityEvent> PriorityEventReader<'_, 's, E> {
impl<E: PriorityEvent> 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
Expand Down Expand Up @@ -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<E: PriorityEvent> PriorityEventWriter<'_, '_, E> {
pub fn send(&mut self, event: E, prio: u32) {
self.events.events.push(EventInstance::new(event, prio));
}
Expand Down
1 change: 0 additions & 1 deletion crates/bevy_mod_scripting_common/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ impl VisitSimpleType<Type> 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,
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_script_api/src/sub_reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_)
}
Expand Down
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|

Expand Down

0 comments on commit c76b062

Please sign in to comment.