Skip to content

Commit

Permalink
reduce unsafe usage, remove potential UB, and make all wrappers clone…
Browse files Browse the repository at this point in the history
… woo!
  • Loading branch information
makspll committed Nov 24, 2023
1 parent 966b81a commit d09ae47
Show file tree
Hide file tree
Showing 6 changed files with 3,795 additions and 28,254 deletions.
2 changes: 1 addition & 1 deletion bevy_api_gen/src/function_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl FunctionData {
.filter(|first_arg| first_arg.type_.is_receiver());
let kind = receiver
.map(|receiver| {
if let Some(op) = operator {
if let Some(_) = operator {
"MetaFunction".to_owned()
} else if matches!(receiver.type_, ValidType::Ref { is_mut, .. } if is_mut) {
"MutatingMethod".to_owned()
Expand Down
Loading

0 comments on commit d09ae47

Please sign in to comment.