From 03d592b1169615b6cabb2b35c218cde76a1023b6 Mon Sep 17 00:00:00 2001 From: James Westman Date: Mon, 30 May 2022 17:28:54 -0500 Subject: [PATCH] Fix annotations on ostree_mutable_tree_lookup() (nullable) and (optional) were missing on lookup()'s out parameters, which caused the rust bindings for the function to not work. Due to the missing (nullable), it would return a Result<(GString, MutableTree), _>, not a Result<(Option, Option), _>, which led to panics. --- src/libostree/ostree-mutable-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libostree/ostree-mutable-tree.c b/src/libostree/ostree-mutable-tree.c index 4b3460e3..58dd3c4c 100644 --- a/src/libostree/ostree-mutable-tree.c +++ b/src/libostree/ostree-mutable-tree.c @@ -403,8 +403,8 @@ ostree_mutable_tree_ensure_dir (OstreeMutableTree *self, * ostree_mutable_tree_lookup: * @self: Tree * @name: name - * @out_file_checksum: (out) (transfer full): checksum - * @out_subdir: (out) (transfer full): subdirectory + * @out_file_checksum: (out) (transfer full) (nullable) (optional): checksum + * @out_subdir: (out) (transfer full) (nullable) (optional): subdirectory * @error: a #GError */ gboolean