Skip to content

Commit e12e597

Browse files
committed
chore: Update name.
1 parent 26d7678 commit e12e597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_api_gen/src/passes/find_methods_and_fields.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use log::{info, trace};
33
use rustc_ast::Attribute;
44
use rustc_hir::{
55
def_id::{DefId, LOCAL_CRATE},
6-
Unsafety,
6+
Safety,
77
};
88
use rustc_infer::infer::TyCtxtInferExt;
99
use rustc_middle::ty::{AdtKind, AssocKind, FieldDef, FnSig, ParamEnv, Ty, TyCtxt, TyKind};
@@ -135,7 +135,7 @@ pub(crate) fn find_methods_and_fields(ctxt: &mut BevyCtxt<'_>, _args: &Args) ->
135135
}
136136
};
137137

138-
let is_unsafe = sig.unsafety == Unsafety::Unsafe;
138+
let is_unsafe = sig.safety == Safety::Unsafe;
139139

140140
if trait_did.is_none() && !ctxt.tcx.visibility(fn_did).is_public() {
141141
log::info!(

0 commit comments

Comments
 (0)