Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

policy.rs: refactor unstable .inspect_err feature for rust <=1.75 #83

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

eguzki
Copy link
Contributor

@eguzki eguzki commented Sep 12, 2024

Result's inspect_err method is unstable for rust <= 1.75, leading to

82.22 error[E0658]: use of unstable library feature 'result_option_inspect'
82.22    --> src/policy.rs:144:30
82.22     |
82.22 144 | ...                   .inspect_err(|e| debug!("#{} build_single_descriptor: failed to parse selector value: {}, error: {}",
82.22     |                        ^^^^^^^^^^^
82.22     |
82.22     = note: see issue #91345 <https://github.com/rust-lang/rust/issues/91345> for more information

This is a workaround to enable build rust on 1.75

Signed-off-by: Eguzki Astiz Lezaun <eastizle@redhat.com>
@alexsnaps
Copy link
Member

Why do we care about rust 1.75?

@alexsnaps alexsnaps merged commit 33e70d2 into main Sep 12, 2024
10 checks passed
@alexsnaps alexsnaps deleted the refactor-unstable-library-feature branch September 12, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants