From 6ca4818302604289a05092d5eab620b818493845 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 28 Dec 2015 21:25:33 +0100 Subject: [PATCH] Add File::set_header() --- src/storage/file/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/storage/file/mod.rs b/src/storage/file/mod.rs index 14b4e1e3..16a072ef 100644 --- a/src/storage/file/mod.rs +++ b/src/storage/file/mod.rs @@ -40,6 +40,10 @@ impl File { &self.header } + pub fn set_header(&mut self, new_header: FileHeaderData) { + self.header = new_header; + } + pub fn data(&self) -> &String { &self.data }