Skip to content

Commit

Permalink
Fix windows builds again (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanNano committed Jan 28, 2024
1 parent bdf41a3 commit e36bf26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions rust-script/src/runtime/rust_script_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ impl ScriptInstance for RustScriptInstance {
method: StringName,
args: &[&Variant],
) -> Result<Variant, godot::sys::GDExtensionCallErrorType> {
self.data
.call(method, args)
.map(Into::into)
// GDExtensionCallErrorType is not guaranteed to be a u32
.map_err(|err: u32| err as godot::sys::GDExtensionCallErrorType)
self.data.call(method, args)
}

fn get_script(&self) -> &Gd<Script> {
Expand Down

0 comments on commit e36bf26

Please sign in to comment.