Skip to content

Commit a8a432f

Browse files
committed
Auto merge of #13182 - hi-rustin:rustin-patch-rustfix-typos, r=weihanglo
chore(rustfix): remove useless clippy rules and fix a typo
2 parents 1a2666d + 0b6c229 commit a8a432f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/rustfix/examples/fix-json.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
#![allow(clippy::disallowed_methods, clippy::print_stdout, clippy::print_stderr)]
1+
#![allow(clippy::print_stderr)]
22

3-
use anyhow::Error;
43
use std::io::{stdin, BufReader, Read};
54
use std::{collections::HashMap, collections::HashSet, env, fs};
65

6+
use anyhow::Error;
7+
78
fn main() -> Result<(), Error> {
89
let suggestions_file = env::args().nth(1).expect("USAGE: fix-json <file or -->");
910
let suggestions = if suggestions_file == "--" {

crates/rustfix/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub struct Snippet {
106106
pub range: Range<usize>,
107107
/// leading surrounding text, text to replace, trailing surrounding text
108108
///
109-
/// This split is useful for higlighting the part that gets replaced
109+
/// This split is useful for highlighting the part that gets replaced
110110
pub text: (String, String, String),
111111
}
112112

0 commit comments

Comments
 (0)