Reimplement File::contents() with File::{header(),data()}
This commit is contained in:
parent
09940f3228
commit
6eb7bee355
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ impl<'a> File<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn contents(&self) -> (FileHeaderData, String) {
|
pub fn contents(&self) -> (FileHeaderData, String) {
|
||||||
(self.header.clone(), self.data.clone())
|
(self.header(), self.data())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn id(&self) -> FileID {
|
pub fn id(&self) -> FileID {
|
||||||
|
|
Loading…
Reference in a new issue