Compare commits

..

No commits in common. "d6ee19e000fd83b5e2b6c5eccb5797f155003157" and "b492d097e7dc1332c6de8c2edcc7888ef562d92d" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View file

@ -99,11 +99,7 @@ pub fn generate_flatmap(xml: &path::Path, out: Option<&path::Path>) -> Result<()
}
let f: Box<dyn Write> = 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()),

View file

@ -16,7 +16,7 @@ pub struct FlattenedRegisterEntry<'a> {
}
/// Flattened register map.
pub type FlattenedRegisterMap<'a> = Vec<Option<FlattenedRegisterEntry<'a>>>;
type FlattenedRegisterMap<'a> = Vec<Option<FlattenedRegisterEntry<'a>>>;
impl Module {
/// Validate the address assignment, generating a flatten register map.