From f386b8516ba805aa3b0d1f5905d8b997b34c3020 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:04:00 -0600 Subject: [PATCH] lint --- .mise.toml | 15 +++++++++------ cli/src/errors.rs | 2 -- src/parse/context.rs | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.mise.toml b/.mise.toml index 7f93196..1068c3d 100644 --- a/.mise.toml +++ b/.mise.toml @@ -32,13 +32,16 @@ raw = true run = 'cargo test --all --all-features' [tasks.lint] -run = 'cargo clippy --all --all-features -- -D warnings' +run = [ + 'cargo clippy --all --all-features -- -D warnings', + 'cargo fmt --all -- --check', +] [tasks.lint-fix] -run = 'cargo clippy --all --all-features --fix --allow-dirty --allow-staged -- -D warnings' - -[tasks.format-check] -run = 'cargo fmt --all -- --check' +run = [ + 'cargo clippy --all --all-features --fix --allow-dirty --allow-staged -- -D warnings', + 'cargo fmt --all', +] [tasks.ci] -depends = ['test', 'lint', 'format-check'] +depends = ['test', 'lint'] diff --git a/cli/src/errors.rs b/cli/src/errors.rs index 801299c..dbcc107 100644 --- a/cli/src/errors.rs +++ b/cli/src/errors.rs @@ -1,5 +1,3 @@ - - use miette::{Diagnostic, NamedSource, SourceSpan}; use thiserror::Error; diff --git a/src/parse/context.rs b/src/parse/context.rs index 837704c..70bef18 100644 --- a/src/parse/context.rs +++ b/src/parse/context.rs @@ -20,4 +20,4 @@ impl ParsingContext { let source = NamedSource::new(self.file.to_string_lossy(), self.spec.clone()); UsageErr::InvalidInput(msg, span, source) } -} \ No newline at end of file +}