Skip to content

Small fixes #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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,11 +108,11 @@
}
}

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
/// i.e. will handle events in the priority range [min,max] (inclusive)

Check warning on line 115 in crates/bevy_event_priority/src/lib.rs

View workflow job for this annotation

GitHub Actions / Docs

unresolved link to `min,max`
pub fn iter_prio_range(&mut self, max: u32, min: u32) -> impl Iterator<Item = E> + '_ {
PriorityIterator {
min,
Expand Down Expand Up @@ -140,7 +140,7 @@
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
Loading