Skip to content

Commit

Permalink
Enable trust_return_value_nullability
Browse files Browse the repository at this point in the history
Several commonly used APIs currently unnecessarily return
`Option<T>`, like `ostree_deployment_get_csum()`.

Flip the gir flag for this to on; I think our annotations are
correct.
  • Loading branch information
cgwalters committed Mar 14, 2023
1 parent c0427ec commit 47c1ae7
Show file tree
Hide file tree
Showing 19 changed files with 674 additions and 2,877 deletions.
1 change: 1 addition & 0 deletions rust-bindings/conf/ostree.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ target_path = ".."
doc_target_path = "../target/vendor.md"
deprecate_by_min_version = true
single_version_file = true
trust_return_value_nullability = true
generate_display_trait = true

girs_directories = [ "../gir-files" ]
Expand Down
2 changes: 1 addition & 1 deletion rust-bindings/src/auto/bootconfig_parser.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust-bindings/src/auto/collection_ref.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions rust-bindings/src/auto/deployment.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions rust-bindings/src/auto/functions.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust-bindings/src/auto/gpg_verify_result.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust-bindings/src/auto/mutable_tree.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions rust-bindings/src/auto/remote.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions rust-bindings/src/auto/repo.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions rust-bindings/src/auto/repo_file.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 47c1ae7

Please sign in to comment.