Skip to content

Commit

Permalink
Merge pull request #1389 from gtk-rs/bilelmoussaoui-patch-2
Browse files Browse the repository at this point in the history
analysis: include glib::Cast when having a parameter is marked as move
  • Loading branch information
sdroege authored Oct 18, 2022
2 parents 2da186b + 90cb36e commit 952ff41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ fn analyze_function(
}

imports.add_used_types(&used_types);
if ret.base_tid.is_some() {
if ret.base_tid.is_some() || parameters.c_parameters.iter().any(|p| p.move_) {
imports.add("glib::object::Cast");
}

Expand Down

0 comments on commit 952ff41

Please sign in to comment.