Merge pull request #823 from tamird/clippy

aya-bpf-macros: appease clippy
pull/824/head
Tamir Duberstein 1 year ago committed by GitHub
commit 847f4105a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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<()> { 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 { let tokens = match arg {
Arg::String(name_val) => name_val.name.clone(), Arg::String(name_val) => name_val.name.clone(),
Arg::Bool(ident) => ident.clone(), Arg::Bool(ident) => ident.clone(),

Loading…
Cancel
Save