cargo fmt
This commit is contained in:
parent
7a9a54c685
commit
266d3122c4
|
@ -11,7 +11,7 @@ fn make_pubid(id: &str) -> String {
|
|||
#[derive(Debug)]
|
||||
pub enum CompileErrorKind {
|
||||
UndefinedReference(String),
|
||||
BadArgCount{received: usize, expected: usize},
|
||||
BadArgCount { received: usize, expected: usize },
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
@ -85,9 +85,10 @@ fn lower_expression(
|
|||
})?;
|
||||
|
||||
if args_resolved.len() != callable.args.len() {
|
||||
return Err(CompileError::new(CompileErrorKind::BadArgCount{
|
||||
expected: callable.args.len(), received: args_resolved.len()
|
||||
}))
|
||||
return Err(CompileError::new(CompileErrorKind::BadArgCount {
|
||||
expected: callable.args.len(),
|
||||
received: args_resolved.len(),
|
||||
}));
|
||||
}
|
||||
|
||||
let cell_id = module.make_genid(&callable.name);
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
use nom::{
|
||||
character::complete::{char, one_of},
|
||||
combinator::{map_res, recognize},
|
||||
|
|
|
@ -4,7 +4,6 @@ mod literals;
|
|||
mod parser;
|
||||
mod rtlil;
|
||||
|
||||
|
||||
use std::fs::File;
|
||||
use std::io::prelude::*;
|
||||
use std::path::PathBuf;
|
||||
|
|
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue