Skip to content

Commit

Permalink
applied clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlyle-Foster committed Jan 2, 2025
1 parent 33120b0 commit a2881a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/augmented.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use nom::{
IResult,
};

#[non_exhaustive]
pub struct ABNF;

impl Format for ABNF {
Expand Down
1 change: 0 additions & 1 deletion src/grammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ impl Grammar {
}

/// parse a grammar given a format
pub fn parse_from<F: Format>(input: &str) -> Result<Self, self::Error> {
match parsers::grammar_complete::<F>(input) {
Result::Ok((_, o)) => Ok(o),
Expand Down
1 change: 1 addition & 0 deletions src/parsers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub trait Format {
fn nonterminal(input: &str) -> IResult<&str, Term, VerboseError<&str>>;
}

#[non_exhaustive]
pub struct BNF;

impl Format for BNF {
Expand Down
4 changes: 2 additions & 2 deletions src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ mod defs {
pub struct Span {}

impl Span {
pub fn entered(&self) -> Self {
pub const fn entered(&self) -> Self {
Self {}
}
}
Expand All @@ -42,7 +42,7 @@ mod defs {
pub(crate) use event;

#[allow(dead_code)]
pub fn init_subscriber() {}
pub const fn init_subscriber() {}
}

pub(crate) use defs::*;

0 comments on commit a2881a3

Please sign in to comment.