We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d85b020 + 4ce7319 commit 4f6b265Copy full SHA for 4f6b265
src/cargo/util/progress.rs
@@ -2,6 +2,7 @@ use std::cmp;
2
use std::iter;
3
use std::time::{Instant, Duration};
4
5
+use core::shell::Verbosity;
6
use util::{Config, CargoResult};
7
8
pub struct Progress<'cfg> {
@@ -19,6 +20,11 @@ struct State<'cfg> {
19
20
21
impl<'cfg> Progress<'cfg> {
22
pub fn new(name: &str, cfg: &'cfg Config) -> Progress<'cfg> {
23
+ // no progress if `-q` is passed as, well, we're supposed to be quiet
24
+ if cfg.shell().verbosity() == Verbosity::Quiet {
25
+ return Progress { state: None }
26
+ }
27
+
28
Progress {
29
state: cfg.shell().err_width().map(|n| {
30
State {
0 commit comments