Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thorio committed Jul 12, 2024
1 parent 8309f0f commit 524d154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lto = true

[lints.rust]
keyword_idents = "warn"
non_ascii_idents = "forbid"
non_ascii_idents = { level = "forbid", priority = 1 }
noop_method_call = "warn"
single_use_lifetimes = "warn"
unused_crate_dependencies = "warn"
Expand Down
7 changes: 1 addition & 6 deletions src/roles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ pub fn get_roles() -> IntoIter<Role> {
fn get_role((name, plays): (String, Vec<Play>)) -> Role {
let description = plays.first().expect("cannot pass empty group").description.clone();

Role {
name,
description,
plays,
}
Role { name, description }
}

/// Returns the full path of available role files in alphabetical order.
Expand Down Expand Up @@ -124,7 +120,6 @@ fn get_play_description(path: impl AsRef<Path>) -> Option<String> {
pub struct Role {
pub name: String,
pub description: Option<String>,
pub plays: Vec<Play>,
}

impl Role {
Expand Down

0 comments on commit 524d154

Please sign in to comment.