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<GString>, Option<MutableTree>), _>, which led to panics.
This commit is contained in:
parent
7aa17acd8d
commit
03d592b116
|
|
@ -403,8 +403,8 @@ ostree_mutable_tree_ensure_dir (OstreeMutableTree *self,
|
||||||
* ostree_mutable_tree_lookup:
|
* ostree_mutable_tree_lookup:
|
||||||
* @self: Tree
|
* @self: Tree
|
||||||
* @name: name
|
* @name: name
|
||||||
* @out_file_checksum: (out) (transfer full): checksum
|
* @out_file_checksum: (out) (transfer full) (nullable) (optional): checksum
|
||||||
* @out_subdir: (out) (transfer full): subdirectory
|
* @out_subdir: (out) (transfer full) (nullable) (optional): subdirectory
|
||||||
* @error: a #GError
|
* @error: a #GError
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue