From c1dc524cab5dcd1e5794ba1604d1f251a0d81d86 Mon Sep 17 00:00:00 2001 From: NotAFile Date: Thu, 3 Feb 2022 00:55:40 +0100 Subject: [PATCH] clippy fix --- src/parser/comb.rs | 2 +- src/parser/mod.rs | 2 -- src/parser/module.rs | 16 +++++----------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/parser/comb.rs b/src/parser/comb.rs index 6fa5a39..ccfcdb5 100644 --- a/src/parser/comb.rs +++ b/src/parser/comb.rs @@ -27,7 +27,7 @@ pub fn comb_block(input: TokenSpan) -> IResult { ), ))), ), - |(name, inputs, _ret, items)| Module { + |(name, inputs, _ret, _items)| Module { // TODO: bring back returns name: name.span(), ports: inputs, diff --git a/src/parser/mod.rs b/src/parser/mod.rs index a7f675b..cbf4a63 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -10,8 +10,6 @@ pub mod tokens; use nom_locate::LocatedSpan; -use nom::branch::alt; - // custom span type for nom_locate pub type Span<'a> = LocatedSpan<&'a str>; diff --git a/src/parser/module.rs b/src/parser/module.rs index e9d5e69..df58bd4 100644 --- a/src/parser/module.rs +++ b/src/parser/module.rs @@ -1,16 +1,10 @@ -use nom::{ - branch::alt, - combinator::{cut, map}, - error::context, - multi::{many0, separated_list0}, - sequence::{delimited, preceded, tuple}, -}; +use nom::{combinator::map, multi::separated_list0}; use crate::parser::{ - assign_statement, declaration, - proc::{proc_block, ProcBlock}, + declaration, + proc::ProcBlock, tokens::{token, TokenKind as tk, TokenSpan}, - typename, Assign, IResult, NetDecl, Span, + Assign, IResult, NetDecl, Span, }; #[derive(Debug)] @@ -49,7 +43,7 @@ pub fn inputs_list(input: TokenSpan) -> IResult> { separated_list0(token(tk::Comma), port_decl)(input) } -pub fn module(input: TokenSpan) -> IResult { +pub fn module(_input: TokenSpan) -> IResult { todo!(); }