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:
parent
d0af1a493b
commit
b123144202
1 changed files with 2 additions and 2 deletions
|
@ -10,9 +10,9 @@ pub enum FileHeaderSpec {
|
||||||
UInteger,
|
UInteger,
|
||||||
Float,
|
Float,
|
||||||
Text,
|
Text,
|
||||||
Key { name: String, value_type: Box<FileHeaderSpec> },
|
Key { name: &'static str, value_type: Box<FileHeaderSpec> },
|
||||||
Map { keys: Vec<FileHeaderSpec> },
|
Map { keys: Vec<FileHeaderSpec> },
|
||||||
Array { allowed_types: Box<Vec<FileHeaderSpec>> },
|
Array { allowed_types: Vec<FileHeaderSpec> },
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|
Loading…
Reference in a new issue