Skip to content

Commit 47551ef

Browse files
andholpil
authored andcommitted
refactor(dependencies): output major version availability hint to stderr instead of stdout ♻️
1 parent 1d8f28d commit 47551ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler-cli/src/dependencies.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,14 @@ pub fn download<Telem: Telemetry>(
435435
);
436436

437437
if !major_versions_available.is_empty() {
438-
println!("Hint: the following dependencies have new major versions available...");
438+
// print to stderr instead of because this is not part of the standard output of this
439+
// command
440+
eprintln!("Hint: the following dependencies have new major versions available...");
439441

440442
major_versions_available
441443
.iter()
442444
.for_each(|(name, (v1, v2))| {
443-
println!("{}@{} -> {}@{}", name, v1, name, v2);
445+
eprintln!("{}@{} -> {}@{}", name, v1, name, v2);
444446
});
445447
}
446448

0 commit comments

Comments
 (0)