From 692591704a105d224e371ea5d22cbe8781b5ee18 Mon Sep 17 00:00:00 2001 From: Kiran Shila Date: Fri, 5 Apr 2024 14:34:15 -0700 Subject: [PATCH] CI, spelling --- flake.nix | 6 ++++++ src/errors.rs | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 1ef3c2f..53ced97 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ''; @@ -43,6 +48,7 @@ # Linting support alejandra + codespell ]); in with pkgs; { diff --git a/src/errors.rs b/src/errors.rs index 2629ccc..ed5eab0 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -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 ParseError 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 {