Fix: FileHeaderData::Key::name must be a &'static str

This commit is contained in:
Matthias Beyer 2015-12-02 11:30:14 +01:00
parent 2a468059aa
commit 8f8badebb3

View file

@ -27,7 +27,7 @@ pub enum FileHeaderData {
UInteger(u64),
Float(f64),
Text(String),
Key { name: String, value: Box<FileHeaderData> },
Key { name: &'static str, value: Box<FileHeaderData> },
Map { keys: Vec<FileHeaderData> },
Array { values: Box<Vec<FileHeaderData>> },
}