Skip to content

Commit 55d9f91

Browse files
pwoolcocPaul Woolcock
authored and
Paul Woolcock
committed
Only display these messages if verbosity is not set to `Quiet`
1 parent acad699 commit 55d9f91

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/cargo/core/shell.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,17 @@ impl MultiShell {
5252
}
5353

5454
pub fn say<T: ToString>(&mut self, message: T, color: Color) -> IoResult<()> {
55-
self.out().say(message, color)
55+
match self.verbosity {
56+
Quiet => Ok(()),
57+
_ => self.out().say(message, color)
58+
}
5659
}
5760

5861
pub fn status<T: Show, U: Show>(&mut self, status: T, message: U) -> IoResult<()> {
59-
self.out().say_status(status, message, GREEN)
62+
match self.verbosity {
63+
Quiet => Ok(()),
64+
_ => self.out().say_status(status, message, GREEN)
65+
}
6066
}
6167

6268
pub fn verbose(&mut self, callback: Callback) -> IoResult<()> {

0 commit comments

Comments
 (0)