Skip to content

Commit

Permalink
Merge pull request #823 from tamird/clippy
Browse files Browse the repository at this point in the history
aya-bpf-macros: appease clippy
  • Loading branch information
tamird authored Oct 22, 2023
2 parents f037a94 + a31332f commit 847f410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aya-bpf-macros/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub(crate) fn pop_bool_arg(args: &mut Args, name: &str) -> bool {
}

pub(crate) fn err_on_unknown_args(args: &Args) -> Result<()> {
if let Some(arg) = args.args.get(0) {
if let Some(arg) = args.args.first() {
let tokens = match arg {
Arg::String(name_val) => name_val.name.clone(),
Arg::Bool(ident) => ident.clone(),
Expand Down

0 comments on commit 847f410

Please sign in to comment.