clippy fix

This commit is contained in:
NotAFile 2022-02-03 00:55:40 +01:00
parent aadf044f9d
commit c1dc524cab
3 changed files with 6 additions and 14 deletions

View File

@ -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,

View File

@ -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>;

View File

@ -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!();
} }