Merge pull request #1 from tjallingt/patch-1
chore: ensure macro is prepared for potential pretty printing improvements
This commit is contained in:
commit
8bcb5af771
1 changed files with 7 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue