Skip to content

Commit

Permalink
codegen: Avoid useless borrows for properties setters
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui authored and sdroege committed Mar 14, 2023
1 parent bdec498 commit c0ef822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/property_body.rs
Original file line number Diff line number Diff line change
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 c0ef822

Please sign in to comment.