refactor: harden clippy lints
This commit is contained in:
parent
2b3d81cfa4
commit
a4abdd72e4
19 changed files with 39 additions and 37 deletions
4
build.rs
4
build.rs
|
@ -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 {{
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue