Skip to content

Commit

Permalink
Auto merge of #13182 - hi-rustin:rustin-patch-rustfix-typos, r=weihanglo
Browse files Browse the repository at this point in the history
chore(rustfix): remove useless clippy rules and fix a typo
  • Loading branch information
bors committed Dec 18, 2023
2 parents 1a2666d + 0b6c229 commit a8a432f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crates/rustfix/examples/fix-json.rs
Original file line number Diff line number Diff line change
@@ -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 <file or -->");
let suggestions = if suggestions_file == "--" {
Expand Down
2 changes: 1 addition & 1 deletion crates/rustfix/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub struct Snippet {
pub range: Range<usize>,
/// 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),
}

Expand Down

0 comments on commit a8a432f

Please sign in to comment.