Skip to content

Commit 8f7d2bb

Browse files
committed
cargo fmt.
1 parent 5414c1b commit 8f7d2bb

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ fn main() {
2626
/* Provides weak aliases (cf. PROVIDED) for device specific interrupt handlers */
2727
/* This will usually be provided by a device crate generated using svd2rust (see `device.x`) */
2828
INCLUDE device.x"#
29-
).unwrap();
29+
)
30+
.unwrap();
3031
} else {
3132
let mut f = File::create(out.join("link.x")).unwrap();
3233
f.write_all(link_x).unwrap();

macros/src/lib.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ use quote::quote;
1717
use rand::Rng;
1818
use rand_xoshiro::rand_core::SeedableRng;
1919
use syn::{
20-
parse, parse_macro_input, punctuated::Punctuated, spanned::Spanned, FnArg, Ident,
21-
Item, ItemFn, ItemStatic, Pat, PatIdent, PathArguments, PathSegment, ReturnType, Stmt, Token,
22-
Type, TypePath, Visibility,
20+
parse, parse_macro_input, punctuated::Punctuated, spanned::Spanned, FnArg, Ident, Item, ItemFn,
21+
ItemStatic, Pat, PatIdent, PathArguments, PathSegment, ReturnType, Stmt, Token, Type, TypePath,
22+
Visibility,
2323
};
2424

2525
/// Attribute to declare the entry point of the program
@@ -403,7 +403,12 @@ fn extract_critical_section_arg(
403403
Ok((None, None))
404404
} else if num_args == 1 {
405405
if let FnArg::Typed(pat_type) = list.first().unwrap() {
406-
match (&*pat_type.pat, &*pat_type.ty, pat_type.colon_token, &*pat_type.attrs) {
406+
match (
407+
&*pat_type.pat,
408+
&*pat_type.ty,
409+
pat_type.colon_token,
410+
&*pat_type.attrs,
411+
) {
407412
(
408413
Pat::Ident(PatIdent {
409414
ident: name,
@@ -414,7 +419,7 @@ fn extract_critical_section_arg(
414419
}),
415420
Type::Path(TypePath { qself: None, path }),
416421
_,
417-
[]
422+
[],
418423
) if path.segments.len() == 1 && attrs.len() == 0 => {
419424
let seg = path.segments.first().unwrap();
420425
match seg {

0 commit comments

Comments
 (0)