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 == "--" { 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), }