Skip to content

Commit 3c2984e

Browse files
taiki-egnzlbg
authored andcommitted
Format with rustfmt
1 parent 6748f8a commit 3c2984e

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

crates/assert-instr-macro/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ pub fn assert_instr(
147147
}
148148
};
149149
// why? necessary now to get tests to work?
150-
let tokens: TokenStream = tokens.to_string().parse().expect("cannot parse tokenstream");
150+
let tokens: TokenStream = tokens
151+
.to_string()
152+
.parse()
153+
.expect("cannot parse tokenstream");
151154

152155
let tokens: TokenStream = quote! {
153156
#item

crates/stdarch-verify/src/lib.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,7 @@ fn extract_path_ident(path: &syn::Path) -> syn::Ident {
260260
if path.segments.len() != 1 {
261261
panic!("unsupported path that needs name resolution")
262262
}
263-
match path
264-
.segments
265-
.first()
266-
.expect("segment not found")
267-
.arguments
268-
{
263+
match path.segments.first().expect("segment not found").arguments {
269264
syn::PathArguments::None => {}
270265
_ => panic!("unsupported path that has path arguments"),
271266
}
@@ -407,7 +402,10 @@ impl syn::parse::Parse for RustcArgsRequiredConst {
407402
let list =
408403
syn::punctuated::Punctuated::<syn::LitInt, Token![,]>::parse_terminated(&content)?;
409404
Ok(Self {
410-
args: list.into_iter().map(|a| a.base10_parse::<usize>()).collect::<syn::Result<_>>()?,
405+
args: list
406+
.into_iter()
407+
.map(|a| a.base10_parse::<usize>())
408+
.collect::<syn::Result<_>>()?,
411409
})
412410
}
413411
}

0 commit comments

Comments
 (0)