Merge pull request #1 from tjallingt/patch-1

chore: ensure macro is prepared for potential pretty printing improvements
This commit is contained in:
Manuel Cillero 2023-11-13 20:39:05 +01:00 committed by GitHub
commit 8bcb5af771
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,13 @@ pub fn fn_builder(_attr: TokenStream, item: TokenStream) -> TokenStream {
let param: Vec<String> = args
.iter()
.map(|arg| arg.split_whitespace().next().unwrap().to_string())
.map(|arg| {
arg.split_whitespace()
.next()
.unwrap()
.trim_end_matches(":")
.to_string()
})
.collect();
#[rustfmt::skip]