Skip to content

Commit c0ef822

Browse files
bilelmoussaouisdroege
authored andcommitted
codegen: Avoid useless borrows for properties setters
1 parent bdec498 commit c0ef822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/property_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl<'a> Builder<'a> {
126126
};
127127

128128
vec![Chunk::Custom(format!(
129-
"{}::set_property({},\"{}\", &{})",
129+
"{}::set_property({},\"{}\", {})",
130130
use_glib_type(self.env, "ObjectExt"),
131131
self_,
132132
self.name,

0 commit comments

Comments
 (0)