aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-02-19 18:45:27 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-02-19 18:45:27 +0100
commit2a38312c067414ee82da971b880d650ccd6b084c (patch)
treee8c1181e421f6f3317aa58747298dca17828f48e
parentf19d0b70994eced1338bc9f2667d9e95e74400d5 (diff)
downloadsylt-2a38312c067414ee82da971b880d650ccd6b084c.tar.gz
linebreak
-rw-r--r--sylt_macro/src/lib.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/sylt_macro/src/lib.rs b/sylt_macro/src/lib.rs
index fc43b5c..1cafde8 100644
--- a/sylt_macro/src/lib.rs
+++ b/sylt_macro/src/lib.rs
@@ -73,12 +73,18 @@ pub fn extern_function(tokens: TokenStream) -> TokenStream {
#[allow(unused_variables)]
match __values {
#(#typecheck_blocks),*
- _ => Err(sylt::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| sylt::Type::from(v)).collect()))
+ _ => Err(sylt::error::ErrorKind::ExternTypeMismatch(
+ stringify!(#function).to_string(),
+ __values.iter().map(|v| sylt::Type::from(v)).collect()
+ ))
}
} else {
match __values {
#(#eval_blocks),*
- _ => Err(sylt::error::ErrorKind::ExternTypeMismatch(stringify!(#function).to_string(), __values.iter().map(|v| sylt::Type::from(v)).collect()))
+ _ => Err(sylt::error::ErrorKind::ExternTypeMismatch(
+ stringify!(#function).to_string(),
+ __values.iter().map(|v| sylt::Type::from(v)).collect()
+ ))
}
}
}