Skip to content

Commit

Permalink
Fix formatting and lints
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Apr 30, 2024
1 parent 503326f commit 7af7456
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub(crate) fn impl_get_ownership(
) -> proc_macro2::TokenStream {
let bevy_reflect = meta.bevy_reflect_path();
let type_path = meta.type_path();

let (impl_generics, ty_generics, where_clause) = type_path.generics().split_for_impl();
let where_reflect_clause = where_clause_options.extend_where_clause(where_clause);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub(crate) fn impl_struct(reflect_struct: &ReflectStruct) -> proc_macro2::TokenS
#typed_impl

#type_path_impl

#function_impls

impl #impl_generics #bevy_reflect_path::Struct for #struct_path #ty_generics #where_reflect_clause {
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_reflect/src/func/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl<'env> Function<'env> {
/// increment_function.call_once(args).unwrap();
/// assert_eq!(count, 5);
/// ```
pub fn call_once<'a>(mut self, args: ArgList<'a>) -> FunctionResult<'a> {
pub fn call_once(mut self, args: ArgList) -> FunctionResult {
(self.func.deref_mut())(args, &self.info)
}
}
Expand Down

0 comments on commit 7af7456

Please sign in to comment.