Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vhdirk committed Jul 6, 2018
1 parent 4a38e03 commit b8ef2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/subclass/trampoline_to_glib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn to_glib_with_destroy(parameter: &library::Parameter,
format!(r#"{{
let ret = {param_prefix}{param_name}{to_glib};
unsafe extern "C" fn destroy_{param_name}(p: glib_ffi::gpointer){{
let _:{rust_type} = {glib_translate}::from_glib_full(p as {c_type});
let _: {rust_type} = {glib_translate}::from_glib_full(p as {c_type});
}};
gobject_ffi::g_object_set_qdata_full(gptr as *mut gobject_ffi::GObject,
glib_ffi::g_quark_from_string("rs_{object_name}_{method_name}_{param_name}".to_glib_none().0),
Expand Down

0 comments on commit b8ef2ce

Please sign in to comment.