diff --git a/src/analysis/properties.rs b/src/analysis/properties.rs index 83e5b854f..20b1b5719 100644 --- a/src/analysis/properties.rs +++ b/src/analysis/properties.rs @@ -343,7 +343,6 @@ fn analyze_property( imports.add("glib::prelude::*"); } imports.add("glib::signal::{connect_raw, SignalHandlerId}"); - imports.add("std::mem::transmute"); imports.add("std::boxed::Box as Box_"); Some(signals::Info { diff --git a/src/analysis/signals.rs b/src/analysis/signals.rs index 1c30032e4..cb147d413 100644 --- a/src/analysis/signals.rs +++ b/src/analysis/signals.rs @@ -103,7 +103,6 @@ fn analyze_signal( imports.add_used_types(&used_types); imports.add("glib::prelude::*"); imports.add("glib::signal::{connect_raw, SignalHandlerId}"); - imports.add("std::mem::transmute"); imports.add("std::boxed::Box as Box_"); } let generate_doc = configured_signals.iter().all(|f| f.generate_doc); diff --git a/src/writer/to_code.rs b/src/writer/to_code.rs index e9a3cae91..c908bb094 100644 --- a/src/writer/to_code.rs +++ b/src/writer/to_code.rs @@ -163,7 +163,7 @@ impl ToCode for Chunk { } let self_str = if in_trait { "Self, " } else { "" }; v.push(format!( - "\tSome(transmute::<_, unsafe extern \"C\" fn()>({trampoline}::<{self_str}F> as *const ())), Box_::into_raw(f))" + "\tSome(std::mem::transmute::<_, unsafe extern \"C\" fn()>({trampoline}::<{self_str}F> as *const ())), Box_::into_raw(f))" )); v }