summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2018-06-18 14:44:40 +0100
committerEmīls Piņķis <emils@mullvad.net>2018-06-21 16:02:50 +0100
commit8fdcb6158ab45bda32598b9d8a1f7c50e278005c (patch)
tree1a7bbc2925e0ba2d4ae29d11c38a79225aca29ea
parent676ffcdfc67700b2e14acbec23371d8a4ef9bfad (diff)
downloadmullvadvpn-8fdcb6158ab45bda32598b9d8a1f7c50e278005c.tar.xz
mullvadvpn-8fdcb6158ab45bda32598b9d8a1f7c50e278005c.zip
Improve system_state.rs in talpid-core
-rw-r--r--talpid-core/src/firewall/system_state.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/talpid-core/src/firewall/system_state.rs b/talpid-core/src/firewall/system_state.rs
index bf99b9f79f..88b5acc6f2 100644
--- a/talpid-core/src/firewall/system_state.rs
+++ b/talpid-core/src/firewall/system_state.rs
@@ -3,11 +3,11 @@
//! reboots
use std::fs;
use std::io;
-use std::path::{Path, PathBuf};
-use std::slice;
+use std::path::Path;
/// This struct is responsible for saving a binary blob to disk. The binary blob is intended to
/// store system state that should be resotred when the security policy is reset.
+#[repr(C)]
pub struct SystemStateWriter {
/// Full path to the system state backup file
pub backup_path: Box<Path>,