Skip to content

Commit

Permalink
CI, spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
kiranshila committed Apr 5, 2024
1 parent bb400e4 commit 6925917
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
echo "Checking clippy..."
cargo clippy --all-targets
echo "Checking spelling..."
codespell \
--skip target,.git \
--ignore-words-list crate
echo "Testing Rust code..."
cargo test
'';
Expand All @@ -43,6 +48,7 @@

# Linting support
alejandra
codespell
]);
in
with pkgs; {
Expand Down
6 changes: 3 additions & 3 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ pub enum FilterbankError {
InvalidHeader,
#[error("Incomplete header")]
IncompleteHeader,
#[error("Extenal parser error")]
#[error("External parser error")]
ExternalParseError(String),
#[error("Unknown parser error")]
Unparseable,
Unparsable,
}

impl<I> ParseError<I> for FilterbankError {
fn from_error_kind(_input: I, _kind: nom::error::ErrorKind) -> Self {
FilterbankError::Unparseable
FilterbankError::Unparsable
}

fn append(_: I, _: nom::error::ErrorKind, other: Self) -> Self {
Expand Down

0 comments on commit 6925917

Please sign in to comment.