mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-11-26 20:15:22 +01:00
Clean up clippy lints
This commit is contained in:
parent
d0d05678b3
commit
d74b5d54b7
2
build.rs
2
build.rs
@ -75,7 +75,7 @@ fn main() {
|
||||
.includes(
|
||||
str::replace(includes.as_ref(), "-I", "")
|
||||
.split(' ')
|
||||
.map(|path| Path::new(path)),
|
||||
.map(Path::new),
|
||||
)
|
||||
.compile("wrapper");
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user