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/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindgen/rust/src/lib.rs') diff --git a/bindgen/rust/src/lib.rs b/bindgen/rust/src/lib.rs index fc8b921..6f25752 100644 --- a/bindgen/rust/src/lib.rs +++ b/bindgen/rust/src/lib.rs @@ -36,7 +36,7 @@ impl SerializableScene { pub fn store_to_file(&self, filepath: &Path) { let mut file = File::create(filepath).expect("creation failed"); let json = serde_json::to_string(&self).expect("serialize failed"); - file.write(&json.as_bytes()).expect("writing failed"); + file.write(json.as_bytes()).expect("writing failed"); } /// TODO: docs pub fn load_from_file(filepath: &Path) -> Self { -- cgit v1.2.3-70-g09d2