Skip to content

Commit d74b5d5

Browse files
committed
Clean up clippy lints
1 parent d0d0567 commit d74b5d5

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn main() {
7575
.includes(
7676
str::replace(includes.as_ref(), "-I", "")
7777
.split(' ')
78-
.map(|path| Path::new(path)),
78+
.map(Path::new),
7979
)
8080
.compile("wrapper");
8181

crates/macros/src/function.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ pub fn parser(args: AttributeArgs, input: ItemFn) -> Result<(TokenStream, Functi
4949
..
5050
} = &sig;
5151

52-
let internal_ident = Ident::new(
53-
&format!("_internal_php_{}", ident.to_string()),
54-
Span::call_site(),
55-
);
52+
let internal_ident = Ident::new(&format!("_internal_php_{}", ident), Span::call_site());
5653
let args = build_args(inputs, &attr_args.defaults)?;
5754
let optional = find_optional_parameter(args.iter(), attr_args.optional);
5855
let arg_definitions = build_arg_definitions(&args);

0 commit comments

Comments
 (0)