Clone these values when returning them
This commit is contained in:
parent
a8bc7ecc47
commit
f694feacf9
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue