From f4cecb52b185bc2c3054517b4fa54bd083ea2e92 Mon Sep 17 00:00:00 2001 From: Sysix <3897725+Sysix@users.noreply.github.com> Date: Thu, 30 Jan 2025 01:43:41 +0000 Subject: [PATCH] refactor(oxlint): remove unused `CliRunResult::PathNotFound` (#8775) --- apps/oxlint/src/result.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/apps/oxlint/src/result.rs b/apps/oxlint/src/result.rs index c880613797d70..832ea0635c8ba 100644 --- a/apps/oxlint/src/result.rs +++ b/apps/oxlint/src/result.rs @@ -1,7 +1,4 @@ -use std::{ - path::PathBuf, - process::{ExitCode, Termination}, -}; +use std::process::{ExitCode, Termination}; #[derive(Debug)] pub enum CliRunResult { @@ -9,9 +6,6 @@ pub enum CliRunResult { InvalidOptions { message: String, }, - PathNotFound { - paths: Vec, - }, /// The exit unix code for, in general 0 or 1 (from `--deny-warnings` or `--max-warnings` for example) LintResult(ExitCode), PrintConfigResult, @@ -29,10 +23,6 @@ impl Termination for CliRunResult { println!("Invalid Options: {message}"); ExitCode::from(1) } - Self::PathNotFound { paths } => { - println!("Path {paths:?} does not exist."); - ExitCode::from(1) - } Self::LintResult(exit_code) => exit_code, Self::ConfigFileInitResult { message } => { println!("{message}");