mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
toml_config_derive: fix clippy warning
This commit is contained in:
parent
aeeeda1b2b
commit
cbbfa9afef
1 changed files with 9 additions and 12 deletions
|
|
@ -146,8 +146,7 @@ fn extract_comment_string(attrs: Vec<Attribute>) -> TokenStream {
|
|||
}
|
||||
|
||||
for token_tree in attr.tokens {
|
||||
match token_tree {
|
||||
TokenTree::Literal(literal) => {
|
||||
if let TokenTree::Literal(literal) = token_tree {
|
||||
let mut comment = format!("{}", literal);
|
||||
|
||||
// Strip leading and trailing quotation marks
|
||||
|
|
@ -160,8 +159,6 @@ fn extract_comment_string(attrs: Vec<Attribute>) -> TokenStream {
|
|||
output.push_str(&comment);
|
||||
output.push('\n');
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue