Clean up clippy lints

This commit is contained in:
David Cole 2021-11-05 23:45:58 +13:00
parent d0d05678b3
commit d74b5d54b7
2 changed files with 2 additions and 5 deletions

View File

@ -75,7 +75,7 @@ fn main() {
.includes(
str::replace(includes.as_ref(), "-I", "")
.split(' ')
.map(|path| Path::new(path)),
.map(Path::new),
)
.compile("wrapper");

View File

@ -49,10 +49,7 @@ pub fn parser(args: AttributeArgs, input: ItemFn) -> Result<(TokenStream, Functi
..
} = &sig;
let internal_ident = Ident::new(
&format!("_internal_php_{}", ident.to_string()),
Span::call_site(),
);
let internal_ident = Ident::new(&format!("_internal_php_{}", ident), Span::call_site());
let args = build_args(inputs, &attr_args.defaults)?;
let optional = find_optional_parameter(args.iter(), attr_args.optional);
let arg_definitions = build_arg_definitions(&args);