Change names to reflect changes

This commit is contained in:
Marcel Müller 2016-01-23 17:48:45 +01:00
parent 15931d3471
commit fdc3dde95b
No known key found for this signature in database
GPG key ID: DD4ED37D0CAC76E2

View file

@ -232,6 +232,12 @@ impl EntryHeader {
} }
} }
fn from_table(t: Table) -> EntryHeader {
EntryHeader {
toml: t
}
}
/** /**
* Get the table which lives in the background * Get the table which lives in the background
*/ */
@ -246,7 +252,7 @@ impl EntryHeader {
parser.parse() parser.parse()
.ok_or(ParserError::new(ParserErrorKind::TOMLParserErrors, None)) .ok_or(ParserError::new(ParserErrorKind::TOMLParserErrors, None))
.and_then(|t| verify_header_consistency(t)) .and_then(|t| verify_header_consistency(t))
.map(|t| EntryHeader::new(t)) .map(|t| EntryHeader::from_table(t))
} }
} }
@ -322,7 +328,7 @@ impl Entry {
fn new(loc: StoreId) -> Entry { fn new(loc: StoreId) -> Entry {
Entry { Entry {
location: loc, location: loc,
header: EntryHeader::new_current(), header: EntryHeader::new(),
content: EntryContent::new() content: EntryContent::new()
} }
} }