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

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 {