From b8e2f75881ab71c2427fca7598dc8a33d760a0a7 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Mon, 18 Dec 2023 20:10:28 +0800 Subject: [PATCH 1/2] chore(rustfix): fix a typo Signed-off-by: hi-rustin --- crates/rustfix/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rustfix/src/lib.rs b/crates/rustfix/src/lib.rs index 5fdb37b56fa..3538a8d130a 100644 --- a/crates/rustfix/src/lib.rs +++ b/crates/rustfix/src/lib.rs @@ -106,7 +106,7 @@ pub struct Snippet { pub range: Range, /// leading surrounding text, text to replace, trailing surrounding text /// - /// This split is useful for higlighting the part that gets replaced + /// This split is useful for highlighting the part that gets replaced pub text: (String, String, String), } From 0b6c229e9ded5fb85d4422fd1628153133585b90 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Mon, 18 Dec 2023 20:17:05 +0800 Subject: [PATCH 2/2] chore(rustfix): remove useless clippy rules Signed-off-by: hi-rustin --- crates/rustfix/examples/fix-json.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/rustfix/examples/fix-json.rs b/crates/rustfix/examples/fix-json.rs index 67617110672..93a8a550321 100644 --- a/crates/rustfix/examples/fix-json.rs +++ b/crates/rustfix/examples/fix-json.rs @@ -1,9 +1,10 @@ -#![allow(clippy::disallowed_methods, clippy::print_stdout, clippy::print_stderr)] +#![allow(clippy::print_stderr)] -use anyhow::Error; use std::io::{stdin, BufReader, Read}; use std::{collections::HashMap, collections::HashSet, env, fs}; +use anyhow::Error; + fn main() -> Result<(), Error> { let suggestions_file = env::args().nth(1).expect("USAGE: fix-json "); let suggestions = if suggestions_file == "--" {