diff --git a/src/integrated.rs b/src/integrated.rs index 341c448..c2dd810 100644 --- a/src/integrated.rs +++ b/src/integrated.rs @@ -99,11 +99,7 @@ pub fn generate_flatmap(xml: &path::Path, out: Option<&path::Path>) -> Result<() } let f: Box = match out { Some(f) => { - let file = File::options() - .create(true) - .write(true) - .truncate(true) - .open(f)?; + let file = File::options().write(true).truncate(true).open(f)?; Box::new(BufWriter::new(file)) } None => Box::new(io::stdout()), diff --git a/src/validator.rs b/src/validator.rs index 74aa4c3..17a379e 100644 --- a/src/validator.rs +++ b/src/validator.rs @@ -16,7 +16,7 @@ pub struct FlattenedRegisterEntry<'a> { } /// Flattened register map. -pub type FlattenedRegisterMap<'a> = Vec>>; +type FlattenedRegisterMap<'a> = Vec>>; impl Module { /// Validate the address assignment, generating a flatten register map.