From 4a29b5ee408ab54b002c835023b60494a728f6e0 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Mon, 19 Feb 2024 20:58:36 -0800 Subject: [PATCH] clippy --- crates/libs/bindgen/src/rust/index.rs | 6 +++--- crates/libs/bindgen/src/rust/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/libs/bindgen/src/rust/index.rs b/crates/libs/bindgen/src/rust/index.rs index 60a24c838e..f7466de6a3 100644 --- a/crates/libs/bindgen/src/rust/index.rs +++ b/crates/libs/bindgen/src/rust/index.rs @@ -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)) } }; diff --git a/crates/libs/bindgen/src/rust/mod.rs b/crates/libs/bindgen/src/rust/mod.rs index 84d5285ec9..76c26680b3 100644 --- a/crates/libs/bindgen/src/rust/mod.rs +++ b/crates/libs/bindgen/src/rust/mod.rs @@ -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::*;