Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/src/bin/convert_quotes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {

let mut buffer = String::new();
if let Err(e) = io::stdin().read_to_string(&mut buffer) {
panic!("{}", e);
panic!("{e}");
}

for line in buffer.lines() {
Expand All @@ -21,7 +21,7 @@ fn main() {
if is_in_code_block {
is_in_inline_code = false;
is_in_html_tag = false;
println!("{}", line);
println!("{line}");
} else {
let modified_line = &mut String::new();
let mut previous_char = std::char::REPLACEMENT_CHARACTER;
Expand Down Expand Up @@ -72,7 +72,7 @@ fn main() {
modified_line.push(char_to_push);
previous_char = char_to_push;
}
println!("{}", modified_line);
println!("{modified_line}");
}
}
}
2 changes: 1 addition & 1 deletion tools/src/bin/lfp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() {
.map(|entry| match entry {
Ok(entry) => entry,
Err(err) => {
eprintln!("{:?}", err);
eprintln!("{err:?}");
std::process::exit(911)
}
})
Expand Down
6 changes: 3 additions & 3 deletions tools/src/bin/link2print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ fn read_md() -> String {
let mut buffer = String::new();
match io::stdin().read_to_string(&mut buffer) {
Ok(_) => buffer,
Err(error) => panic!("{}", error),
Err(error) => panic!("{error}"),
}
}

fn write_md(output: String) {
print!("{}", output);
print!("{output}");
}

fn parse_references(buffer: String) -> (String, HashMap<String, String>) {
Expand Down Expand Up @@ -81,7 +81,7 @@ fn parse_links((buffer, ref_map): (String, HashMap<String, String>)) -> String {
}
}
};
format!("{} at *{}*", name, val)
format!("{name} at *{val}*")
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion tools/src/bin/release_listings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn copy_cleaned_rust_file(
if !ANCHOR_OR_SNIP_COMMENTS.is_match(&line)
&& (item_name != "lib.rs" || !EMPTY_MAIN.is_match(&line))
{
writeln!(&mut to_buf, "{}", line)?;
writeln!(&mut to_buf, "{line}")?;
}
}

Expand Down
4 changes: 2 additions & 2 deletions tools/src/bin/remove_hidden_lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ fn read_md() -> String {
let mut buffer = String::new();
match io::stdin().read_to_string(&mut buffer) {
Ok(_) => buffer,
Err(error) => panic!("{}", error),
Err(error) => panic!("{error}"),
}
}

fn write_md(output: String) {
print!("{}", output);
print!("{output}");
}

fn remove_hidden_lines(input: &str) -> String {
Expand Down
4 changes: 2 additions & 2 deletions tools/src/bin/remove_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::io::Read;
fn main() {
let mut buffer = String::new();
if let Err(e) = io::stdin().read_to_string(&mut buffer) {
panic!("{}", e);
panic!("{e}");
}

let mut refs = HashSet::new();
Expand Down Expand Up @@ -41,5 +41,5 @@ fn main() {
caps.get(0).unwrap().as_str().to_string()
});

print!("{}", out);
print!("{out}");
}
4 changes: 2 additions & 2 deletions tools/src/bin/remove_markup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ fn read_md() -> String {
let mut buffer = String::new();
match io::stdin().read_to_string(&mut buffer) {
Ok(_) => buffer,
Err(error) => panic!("{}", error),
Err(error) => panic!("{error}"),
}
}

fn write_md(output: String) {
print!("{}", output);
print!("{output}");
}

fn remove_markup(input: String) -> String {
Expand Down