summaryrefslogtreecommitdiff
path: root/bindgen/rust/src
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-27 17:49:33 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-27 17:49:33 +1000
commit02fe2c010857e6c3734b3a354c4119f799947fc6 (patch)
treef6286df45e678929e4998dbfe9d770c58228fedd /bindgen/rust/src
parentfb1778cb1c853f7fa48afffd256612eac6f387c8 (diff)
misc bindgen crate cleanup
Diffstat (limited to 'bindgen/rust/src')
-rw-r--r--bindgen/rust/src/lib.rs2
-rw-r--r--bindgen/rust/src/prelude.rs2
2 files changed, 2 insertions, 2 deletions
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 {
diff --git a/bindgen/rust/src/prelude.rs b/bindgen/rust/src/prelude.rs
index 480986a..097239a 100644
--- a/bindgen/rust/src/prelude.rs
+++ b/bindgen/rust/src/prelude.rs
@@ -1,4 +1,4 @@
+pub use celeritas_sys::Mat4;
pub use celeritas_sys::Vec2;
pub use celeritas_sys::Vec3;
pub use celeritas_sys::Vec4;
-pub use celeritas_sys::Mat4; \ No newline at end of file