Change names to reflect changes
This commit is contained in:
parent
15931d3471
commit
fdc3dde95b
1 changed files with 8 additions and 2 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue