From c89a4b37dc7c1423ef698b25560d081018cb31f0 Mon Sep 17 00:00:00 2001 From: Dangerise <2237556709@qq.com> Date: Wed, 7 Feb 2024 22:35:55 +0800 Subject: [PATCH] remove the link in comment and unused error variant --- packages/cli/src/cli/autoformat.rs | 4 ++-- packages/cli/src/error.rs | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/cli/autoformat.rs b/packages/cli/src/cli/autoformat.rs index d487afe1e..83fbdc1b8 100644 --- a/packages/cli/src/cli/autoformat.rs +++ b/packages/cli/src/cli/autoformat.rs @@ -147,9 +147,9 @@ fn format_file(path: impl AsRef, indent: IndentOptions, do_rustfmt: bool) /// Read every .rs file accessible when considering the .gitignore and try to format it /// -/// Runs using Tokio for multithreading, so it should be really really fast +/// Runs using rayon for multithreading, so it should be really really fast /// -/// Doesnhttps://www.rustwiki.org.cn/zh-CN/std/'t do mod-descending, so it will still try to format unreachable files. TODO. +/// Doesn't do mod-descending, so it will still try to format unreachable files. TODO. async fn autoformat_project( check: bool, split_line_attributes: bool, diff --git a/packages/cli/src/error.rs b/packages/cli/src/error.rs index 98c7fc36b..35eea7eab 100644 --- a/packages/cli/src/error.rs +++ b/packages/cli/src/error.rs @@ -46,9 +46,6 @@ pub enum Error { #[error(transparent)] Other(#[from] anyhow::Error), - - #[error("Child process exited with {0}")] - ExitCodeNotZero(i32), } impl From<&str> for Error {