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

Set minimal supported Rust version to 1.75 #30

Merged
merged 1 commit into from
Jan 26, 2025

Conversation

cathay4t
Copy link
Member

@cathay4t cathay4t commented Jan 26, 2025

Current code has Option::is_none_or() which released 2024 Oct 17,
considering old compiler environment like Ubuntu LTS, RHEL and SLES,
replaced it to:

self.unsolicited_messages_tx.as_ref().is_none()
    || self.unsolicited_messages_tx.as_ref().map(|x| x.is_closed())

Set minimum supported Rust version to 1.75 to Cargo.toml and enabled
CI test for it.

@cathay4t cathay4t changed the title Set minimal supported Rust version to 1.77 Set minimal supported Rust version to 1.75 Jan 26, 2025
Current code has `Option::is_none_or()` which released 2024 Oct 17,
considering old compiler environment like Ubuntu 24.04 LTS, RHEL 9,
replaced it to:

```rust
self.unsolicited_messages_tx.as_ref().is_none()
    || self.unsolicited_messages_tx.as_ref().map(|x| x.is_closed())
```

Set minimum supported Rust version to 1.75 to `Cargo.toml` and enabled
CI test for it.

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit 880aff7 into rust-netlink:main Jan 26, 2025
4 checks passed
@cathay4t cathay4t deleted the msrv branch January 26, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant