summaryrefslogtreecommitdiff
path: root/src/storage.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage.rs')
-rw-r--r--src/storage.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/storage.rs b/src/storage.rs
deleted file mode 100644
index b9e8de9..0000000
--- a/src/storage.rs
+++ /dev/null
@@ -1,8 +0,0 @@
1use std::{fs::File, io::Write};
2
3use crate::backup::Backup;
4
5pub fn save_index(backup: Backup) {
6 let mut f = File::create("./index.json").unwrap();
7 f.write_all(&serde_json::to_vec(&backup).unwrap()).unwrap();
8}