clippy fix
This commit is contained in:
parent
aadf044f9d
commit
c1dc524cab
|
@ -27,7 +27,7 @@ pub fn comb_block(input: TokenSpan) -> IResult<TokenSpan, Module> {
|
||||||
),
|
),
|
||||||
))),
|
))),
|
||||||
),
|
),
|
||||||
|(name, inputs, _ret, items)| Module {
|
|(name, inputs, _ret, _items)| Module {
|
||||||
// TODO: bring back returns
|
// TODO: bring back returns
|
||||||
name: name.span(),
|
name: name.span(),
|
||||||
ports: inputs,
|
ports: inputs,
|
||||||
|
|
|
@ -10,8 +10,6 @@ pub mod tokens;
|
||||||
|
|
||||||
use nom_locate::LocatedSpan;
|
use nom_locate::LocatedSpan;
|
||||||
|
|
||||||
use nom::branch::alt;
|
|
||||||
|
|
||||||
// custom span type for nom_locate
|
// custom span type for nom_locate
|
||||||
pub type Span<'a> = LocatedSpan<&'a str>;
|
pub type Span<'a> = LocatedSpan<&'a str>;
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,10 @@
|
||||||
use nom::{
|
use nom::{combinator::map, multi::separated_list0};
|
||||||
branch::alt,
|
|
||||||
combinator::{cut, map},
|
|
||||||
error::context,
|
|
||||||
multi::{many0, separated_list0},
|
|
||||||
sequence::{delimited, preceded, tuple},
|
|
||||||
};
|
|
||||||
|
|
||||||
use crate::parser::{
|
use crate::parser::{
|
||||||
assign_statement, declaration,
|
declaration,
|
||||||
proc::{proc_block, ProcBlock},
|
proc::ProcBlock,
|
||||||
tokens::{token, TokenKind as tk, TokenSpan},
|
tokens::{token, TokenKind as tk, TokenSpan},
|
||||||
typename, Assign, IResult, NetDecl, Span,
|
Assign, IResult, NetDecl, Span,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
@ -49,7 +43,7 @@ pub fn inputs_list(input: TokenSpan) -> IResult<TokenSpan, Vec<PortDecl>> {
|
||||||
separated_list0(token(tk::Comma), port_decl)(input)
|
separated_list0(token(tk::Comma), port_decl)(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn module(input: TokenSpan) -> IResult<TokenSpan, Module> {
|
pub fn module(_input: TokenSpan) -> IResult<TokenSpan, Module> {
|
||||||
todo!();
|
todo!();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue