summaryrefslogtreecommitdiff
path: root/bindgen/rust/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen/rust/src/lib.rs')
-rw-r--r--bindgen/rust/src/lib.rs2
1 files changed, 1 insertions, 1 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 {