From f694feacf9b1cd6950790e96cbd1caecf2efed36 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 24 Nov 2015 19:28:26 +0100 Subject: [PATCH] Clone these values when returning them --- src/storage/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/file.rs b/src/storage/file.rs index 177342fc..d5e2d0ae 100644 --- a/src/storage/file.rs +++ b/src/storage/file.rs @@ -219,11 +219,11 @@ impl File { } pub fn contents(&self) -> (FileHeaderData, String) { - (self.header, self.data) + (self.header.clone(), self.data.clone()) } pub fn id(&self) -> FileID { - self.id + self.id.clone() } fn get_new_file_id() -> FileID {