Fix types

* We can use a str for the key name
* We don't need a box if we have a vec
This commit is contained in:
Matthias Beyer 2015-10-30 18:20:25 +01:00
parent d0af1a493b
commit b123144202

View file

@ -10,9 +10,9 @@ pub enum FileHeaderSpec {
UInteger,
Float,
Text,
Key { name: String, value_type: Box<FileHeaderSpec> },
Key { name: &'static str, value_type: Box<FileHeaderSpec> },
Map { keys: Vec<FileHeaderSpec> },
Array { allowed_types: Box<Vec<FileHeaderSpec>> },
Array { allowed_types: Vec<FileHeaderSpec> },
}
#[derive(Debug)]