diff --git a/src/macros/generate/convert/host/c/function/mod.rs b/src/macros/generate/convert/host/c/function/mod.rs index 3d5040e..95afe6d 100644 --- a/src/macros/generate/convert/host/c/function/mod.rs +++ b/src/macros/generate/convert/host/c/function/mod.rs @@ -31,11 +31,7 @@ use crate::{ impl Function { pub fn to_c(&self, config: &TrixyConfig, namespaces: &Vec<&Identifier>) -> TokenStream2 { let ident = self.identifier.to_c_with_path(namespaces); - let inputs: Vec = self - .inputs - .iter() - .map(NamedType::to_c) - .collect(); + let inputs: Vec = self.inputs.iter().map(NamedType::to_c).collect(); let callback_function = format_ident!("{}", config.callback_function); diff --git a/src/macros/generate/host/mod.rs b/src/macros/generate/host/mod.rs index e416272..9c768ab 100644 --- a/src/macros/generate/host/mod.rs +++ b/src/macros/generate/host/mod.rs @@ -34,9 +34,11 @@ pub mod rust; pub fn format_rust(input: TokenStream2) -> String { prettyplease::unparse( - &syn::parse2(input.clone()).map_err(|err| { - eprintln!("{}:\n===\n{}\n===\n", err, input); - }).expect("This code was generated, it should also be parsable"), + &syn::parse2(input.clone()) + .map_err(|err| { + eprintln!("{}:\n===\n{}\n===\n", err, input); + }) + .expect("This code was generated, it should also be parsable"), ) } diff --git a/update.sh b/update.sh index 9332246..8e07ddb 100755 --- a/update.sh +++ b/update.sh @@ -21,8 +21,7 @@ cargo update && cargo upgrade cd ./example/main || { - echo "Main example is missing"; + echo "Main example is missing" exit 1 } cargo update && cargo upgrade -