Clone these values when returning them

This commit is contained in:
Matthias Beyer 2015-11-24 19:28:26 +01:00
parent a8bc7ecc47
commit f694feacf9

View file

@ -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 {