Skip to content

Commit

Permalink
Merge pull request #1451 from gtk-rs/bilelmoussaoui-patch-2
Browse files Browse the repository at this point in the history
codegen: Avoid useless borrows for properties setters
  • Loading branch information
sdroege committed Mar 11, 2023
2 parents 0334ced + 225bcbb commit d09789d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/property_body.rs
Expand Up @@ -126,7 +126,7 @@ impl<'a> Builder<'a> {
};

vec![Chunk::Custom(format!(
"{}::set_property({},\"{}\", &{})",
"{}::set_property({},\"{}\", {})",
use_glib_type(self.env, "ObjectExt"),
self_,
self.name,
Expand Down

0 comments on commit d09789d

Please sign in to comment.