Skip to content

Commit b7b2183

Browse files
committed
Changes from review
1 parent 83ce546 commit b7b2183

File tree

9 files changed

+277
-263
lines changed

9 files changed

+277
-263
lines changed

godot-codegen/src/util.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -335,18 +335,18 @@ pub fn make_enum_definition(enum_: &Enum) -> TokenStream {
335335
#index_enum_impl
336336

337337
impl crate::builtin::meta::GodotCompatible for #enum_name {
338-
type Via = i64;
338+
type Via = i32;
339339
}
340340

341341
impl crate::builtin::meta::ToGodot for #enum_name {
342342
fn to_godot(&self) -> Self::Via {
343-
<Self as crate::obj::EngineEnum>::ord(*self) as i64
343+
<Self as crate::obj::EngineEnum>::ord(*self)
344344
}
345345
}
346346

347347
impl crate::builtin::meta::FromGodot for #enum_name {
348348
fn try_from_godot(via: Self::Via) -> Option<Self> {
349-
<Self as crate::obj::EngineEnum>::try_from_ord(i32::try_from(via).ok()?)
349+
<Self as crate::obj::EngineEnum>::try_from_ord(via)
350350
}
351351
}
352352

godot-core/src/builtin/meta/godot_compat/impls.rs

-248
This file was deleted.

0 commit comments

Comments
 (0)