Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-t committed May 16, 2023
1 parent e0cab58 commit f6ff182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvars-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ fn skip_field(field: &Field) -> bool {
let nested = tokens.next().expect("expected #[cvars(skip)]");
assert!(tokens.next().is_none(), "expected #[cvars(skip)]");
if let TokenTree::Ident(ident) = nested {
if ident.to_string() == "skip" {
if ident == "skip" {
return true;
} else {
panic!("expected #[cvars(skip)]");
Expand Down

0 comments on commit f6ff182

Please sign in to comment.