refactor: harden clippy lints

This commit is contained in:
seth 2024-01-27 23:18:35 -05:00
parent 2b3d81cfa4
commit a4abdd72e4
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
19 changed files with 39 additions and 37 deletions

View file

@ -54,7 +54,7 @@ fn main() {
r#"
#[allow(non_camel_case_types, clippy::upper_case_acronyms)]
#[derive(Clone, Debug, poise::ChoiceParameter)]
pub enum TagChoice {{
pub enum Choice {{
{}
}}"#,
formatted_names.join(",\n")
@ -62,7 +62,7 @@ fn main() {
let to_str = format!(
r#"
impl TagChoice {{
impl Choice {{
fn as_str(&self) -> &str {{
match &self {{
{}