Skip to content

Commit 70b29da

Browse files
committed
.
1 parent 296342f commit 70b29da

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

module/move/willbe/src/action/test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ Try to install it with `rustup install {}` command(-s)",
124124
#[ cfg( feature = "progress_bar" ) ]
125125
with_progress,
126126
} = o;
127+
128+
// Default value when progress_bar feature is disabled
129+
#[ cfg( not( feature = "progress_bar" ) ) ]
130+
#[ allow( unused_variables ) ]
131+
let with_progress = false;
127132

128133
// zzz : watch and review after been ready
129134
// aaa : for Petro : use relevant entity. use either, implement TryFrom< Either< CrateDir, ManifestFile > >

module/move/willbe/src/command/test.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ mod private
9494
#[ cfg( feature = "progress_bar" ) ]
9595
with_progress
9696
} = o.props.try_into()?;
97+
98+
// Default value when progress_bar feature is disabled
99+
#[ cfg( not( feature = "progress_bar" ) ) ]
100+
#[ allow( unused_variables ) ]
101+
let with_progress = false;
97102

98103
let mut channels = HashSet::new();
99104
if with_stable { channels.insert( Channel::Stable ); }

0 commit comments

Comments
 (0)