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

Use Ruleset::default() instead of Ruleset::new() #44

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

l0kod
Copy link
Member

@l0kod l0kod commented Aug 30, 2023

The new() function is planned to be changed and take parameters. This also align with Rust best practice:
https://rust-lang.github.io/rust-clippy/stable/index.html#new_without_default

Deprecate Ruleset::new() and implement the Default trait for Ruleset.

This should be part of rust-landlock-0.3.0 to warn users about the future change.

The new() function is planned to be changed and take parameters.
This also align with Rust best practice:
https://rust-lang.github.io/rust-clippy/stable/index.html#new_without_default

Deprecate Ruleset::new() and implement the Default trait for Ruleset.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
@l0kod l0kod merged commit 9fe1210 into landlock-lsm:main Sep 6, 2023
5 checks passed
@l0kod l0kod deleted the ruleset-default branch September 6, 2023 16:00
@l0kod
Copy link
Member Author

l0kod commented Sep 11, 2023

Cc #17

@l0kod l0kod mentioned this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant