Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Feb 20, 2024
1 parent 6d07dc3 commit 4a29b5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/libs/bindgen/src/rust/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ pub fn gen_index(writer: &Writer) -> String {
cfg = match item {
Item::Type(def) => {
index_item.name = def.name().to_string();
cfg.union(&type_def_cfg(&writer, def, &[]))
cfg.union(&type_def_cfg(writer, def, &[]))
}
Item::Const(field) => {
index_item.name = field.name().to_string();
cfg.union(&field_cfg(&writer, field))
cfg.union(&field_cfg(writer, field))
}
Item::Fn(method, _) => {
index_item.name = method.name().to_string();
cfg.union(&signature_cfg(&writer, method))
cfg.union(&signature_cfg(writer, method))
}
};

Expand Down
2 changes: 1 addition & 1 deletion crates/libs/bindgen/src/rust/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ fn gen_package(writer: &Writer) -> Result<()> {
}

write_to_file(&cargo_toml, toml)?;
write_to_file(&format!("{package_root}/features.json"), gen_index(&writer))
write_to_file(&format!("{package_root}/features.json"), gen_index(writer))
}

use method_names::*;
Expand Down

0 comments on commit 4a29b5e

Please sign in to comment.