Skip to content

Commit c71e88e

Browse files
author
s.vanriessen
committed
chore: remove to string function on import string
1 parent 138d96b commit c71e88e

File tree

1 file changed

+1
-2
lines changed
  • crates/spidermonkey-embedding-splicer/src

1 file changed

+1
-2
lines changed

crates/spidermonkey-embedding-splicer/src/bindgen.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,8 +1306,7 @@ fn binding_name_import(func_name: &str, iface_name: &Option<String>, import_name
13061306
.collect::<String>();
13071307

13081308
if import_name != "<<INVALID>>" {
1309-
let s = valid_import.to_string();
1310-
format!("{s}${func_name}")
1309+
format!("{valid_import}${func_name}")
13111310
} else if let Some(iface_name) = iface_name {
13121311
format!("{iface_name}${func_name}")
13131312
} else {

0 commit comments

Comments
 (0)