Skip to content

Commit 744a924

Browse files
authored
Update Rust to 1.91 (#546)
* Update Rust to 1.91 * Fix new clippy issues
1 parent 70416a0 commit 744a924

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.90"
2+
channel = "1.91"
33
components = ["clippy", "rustfmt" ]

src/lists.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,14 @@ use serde::{Deserialize, Serialize};
1212
use thiserror::Error;
1313

1414
/// Specifies rule types to keep during parsing.
15-
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
15+
#[derive(Debug, Clone, Copy, Serialize, Deserialize, Default)]
1616
pub enum RuleTypes {
17+
#[default]
1718
All,
1819
NetworkOnly,
1920
CosmeticOnly,
2021
}
2122

22-
impl Default for RuleTypes {
23-
fn default() -> Self {
24-
Self::All
25-
}
26-
}
27-
2823
impl RuleTypes {
2924
pub fn loads_network_rules(&self) -> bool {
3025
matches!(self, Self::All | Self::NetworkOnly)

0 commit comments

Comments
 (0)