Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit bca3d99

Browse files
committed
Fix clippy nits
1 parent f9f59e0 commit bca3d99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/libm-analyze/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn get_arg_ids(len: usize) -> Vec<syn::Ident> {
314314
ids
315315
}
316316

317-
/// Returns the ApiKind enum variant for this function
317+
/// Returns the `ApiKind` enum variant for this function
318318
fn to_api_kind(id: syn::Ident) -> syn::Ident {
319319
let name = syn_to_str!(id);
320320
let first = name.chars().nth(0).unwrap();
@@ -344,15 +344,15 @@ impl syn::parse::Parse for Input {
344344
hash_set.insert(i.to_string());
345345
}
346346
Ok(Input {
347-
macro_id: macro_id,
347+
macro_id,
348348
ignored: Some(hash_set),
349349
})
350350
} else {
351351
Err(lookahead.error())
352352
}
353353
} else {
354354
Ok(Input {
355-
macro_id: macro_id,
355+
macro_id,
356356
ignored: None,
357357
})
358358
}

0 commit comments

Comments
 (0)