Skip to content

Commit

Permalink
clippy: Add default for ParseOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
mmynk committed Nov 21, 2023
1 parent a2d9a7e commit 832801d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ pub struct ParseOptions {
fail_on_unknown_option: bool,
}

impl Default for {
fn default() -> Self {
Self::new()
}
}

impl ParseOptions {
/// Creates a new set of options with all flags set to false.
/// By default, the call fails on unknown netlink messages, attributes or options.
Expand Down

0 comments on commit 832801d

Please sign in to comment.