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

Commit e0fe716

Browse files
committed
Fix clippy nits
1 parent f9f59e0 commit e0fe716

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/libm-analyze/src/lib.rs

Lines changed: 6 additions & 6 deletions
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();
@@ -340,19 +340,19 @@ impl syn::parse::Parse for Input {
340340
if let syn::Lit::Str(c) = ignored {
341341
let s = c.value();
342342
let mut hash_set = HashSet::<String>::new();
343-
for i in s.split(",") {
343+
for i in s.split(',') {
344344
hash_set.insert(i.to_string());
345345
}
346-
Ok(Input {
347-
macro_id: macro_id,
346+
Ok(Self {
347+
macro_id,
348348
ignored: Some(hash_set),
349349
})
350350
} else {
351351
Err(lookahead.error())
352352
}
353353
} else {
354-
Ok(Input {
355-
macro_id: macro_id,
354+
Ok(Self {
355+
macro_id,
356356
ignored: None,
357357
})
358358
}

0 commit comments

Comments
 (0)