From 90cb36e5b2fa4a8fab321aa5833b76c4d63e0242 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 18 Oct 2022 13:32:06 +0200 Subject: [PATCH] analysis: include glib::Cast when having a parameter is marked as move --- src/analysis/functions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis/functions.rs b/src/analysis/functions.rs index ab29687a1..364a82593 100644 --- a/src/analysis/functions.rs +++ b/src/analysis/functions.rs @@ -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"); }