Skip to content

Commit 437942e

Browse files
committed
lint: use eprintln for human-facing outputs
1 parent f9d82a1 commit 437942e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/mdman/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn run() -> Result<(), Error> {
4848
if same_file::is_same_file(source, &out_path).unwrap_or(false) {
4949
bail!("cannot output to the same file as the source");
5050
}
51-
println!("Converting {} -> {}", source.display(), out_path.display());
51+
eprintln!("Converting {} -> {}", source.display(), out_path.display());
5252
let result = mdman::convert(&source, opts.format, opts.url.clone(), opts.man_map.clone())
5353
.with_context(|| format!("failed to translate {}", source.display()))?;
5454

crates/resolver-tests/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ pub fn resolve_with_config_raw(
163163
if std::thread::panicking() && self.list.len() != self.used.len() {
164164
// we found a case that causes a panic and did not use all of the input.
165165
// lets print the part of the input that was used for minimization.
166-
println!(
166+
eprintln!(
167167
"{:?}",
168168
PrettyPrintRegistry(
169169
self.list

crates/semver-check/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::process::{Command, Output};
2020

2121
fn main() {
2222
if let Err(e) = doit() {
23-
println!("error: {}", e);
23+
eprintln!("error: {}", e);
2424
std::process::exit(1);
2525
}
2626
}
@@ -103,7 +103,7 @@ fn doit() -> Result<(), Box<dyn Error>> {
103103
result
104104
};
105105
let expect_success = parts[0][0].contains("MINOR");
106-
println!("Running test from line {}", block_start);
106+
eprintln!("Running test from line {}", block_start);
107107

108108
let result = run_test(
109109
join(parts[1]),

0 commit comments

Comments
 (0)