From 02fe2c010857e6c3734b3a354c4119f799947fc6 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 27 Jul 2024 17:49:33 +1000 Subject: misc bindgen crate cleanup --- bindgen/rust/celeritas-sys/build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bindgen/rust/celeritas-sys/build.rs') diff --git a/bindgen/rust/celeritas-sys/build.rs b/bindgen/rust/celeritas-sys/build.rs index f7bf741..9eaa44f 100644 --- a/bindgen/rust/celeritas-sys/build.rs +++ b/bindgen/rust/celeritas-sys/build.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use bindgen::callbacks::ParseCallbacks; -const serializable_types: &[&'static str] = &[ +const SERIALIZABLE_TYPES: &[&'static str] = &[ "Vec2", "Vec3", "Vec4", @@ -17,7 +17,7 @@ const serializable_types: &[&'static str] = &[ struct DeriveSerialize; impl ParseCallbacks for DeriveSerialize { fn add_derives(&self, info: &bindgen::callbacks::DeriveInfo<'_>) -> Vec { - if (serializable_types.contains(&info.name)) { + if SERIALIZABLE_TYPES.contains(&info.name) { vec!["Serialize".to_string(), "Deserialize".to_string()] } else { vec![] -- cgit v1.2.3-70-g09d2