cargo fmt

This commit is contained in:
NotAFile 2022-01-14 15:32:00 +01:00
parent 7a9a54c685
commit 266d3122c4
4 changed files with 6 additions and 8 deletions

View File

@ -86,8 +86,9 @@ fn lower_expression(
if args_resolved.len() != callable.args.len() {
return Err(CompileError::new(CompileErrorKind::BadArgCount {
expected: callable.args.len(), received: args_resolved.len()
}))
expected: callable.args.len(),
received: args_resolved.len(),
}));
}
let cell_id = module.make_genid(&callable.name);

View File

@ -1,5 +1,3 @@
use nom::{
character::complete::{char, one_of},
combinator::{map_res, recognize},

View File

@ -4,7 +4,6 @@ mod literals;
mod parser;
mod rtlil;
use std::fs::File;
use std::io::prelude::*;
use std::path::PathBuf;

View File

@ -8,7 +8,7 @@ use nom::{
sequence::{delimited, pair, preceded, separated_pair, terminated, tuple},
};
use nom_locate::{LocatedSpan};
use nom_locate::LocatedSpan;
// custom span type for nom_locate
pub type Span<'a> = LocatedSpan<&'a str>;