Reimplement File::contents() with File::{header(),data()}

This commit is contained in:
Matthias Beyer 2015-12-02 11:34:23 +01:00
parent 09940f3228
commit 6eb7bee355
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ impl<'a> File<'a> {
}
pub fn contents(&self) -> (FileHeaderData, String) {
(self.header.clone(), self.data.clone())
(self.header(), self.data())
}
pub fn id(&self) -> FileID {