1
- use super :: * ;
2
- use crate :: core:: Shell ;
3
-
4
1
use std:: fmt;
5
2
use std:: fmt:: Debug ;
6
3
4
+ use super :: * ;
5
+ use crate :: core:: Shell ;
6
+
7
7
#[ derive( Clone , Debug ) ]
8
8
pub enum DirtyReason {
9
9
RustcChanged ,
@@ -135,9 +135,7 @@ impl DirtyReason {
135
135
match self {
136
136
DirtyReason :: RustcChanged => s. dirty_because ( unit, "the toolchain changed" ) ,
137
137
DirtyReason :: FeaturesChanged { .. } => {
138
- s. dirty_because ( unit, "the list of features changed" ) ?;
139
-
140
- Ok ( ( ) )
138
+ s. dirty_because ( unit, "the list of features changed" )
141
139
}
142
140
DirtyReason :: TargetConfigurationChanged => {
143
141
s. dirty_because ( unit, "the target configuration changed" )
@@ -148,11 +146,7 @@ impl DirtyReason {
148
146
DirtyReason :: ProfileConfigurationChanged => {
149
147
s. dirty_because ( unit, "the profile configuration changed" )
150
148
}
151
- DirtyReason :: RustflagsChanged { .. } => {
152
- s. dirty_because ( unit, "the rustflags changed" ) ?;
153
-
154
- Ok ( ( ) )
155
- }
149
+ DirtyReason :: RustflagsChanged { .. } => s. dirty_because ( unit, "the rustflags changed" ) ,
156
150
DirtyReason :: MetadataChanged => s. dirty_because ( unit, "the metadata changed" ) ,
157
151
DirtyReason :: ConfigSettingsChanged => {
158
152
s. dirty_because ( unit, "the config settings changed" )
@@ -169,37 +163,25 @@ impl DirtyReason {
169
163
Ok ( ( ) )
170
164
}
171
165
DirtyReason :: PrecalculatedComponentsChanged { .. } => {
172
- s. dirty_because ( unit, "the precalculated components changed" ) ?;
173
-
174
- Ok ( ( ) )
166
+ s. dirty_because ( unit, "the precalculated components changed" )
175
167
}
176
168
DirtyReason :: DepInfoOutputChanged { .. } => {
177
169
s. dirty_because ( unit, "the dependency info output changed" )
178
170
}
179
171
DirtyReason :: RerunIfChangedOutputFileChanged { .. } => {
180
- s. dirty_because ( unit, "rerun-if-changed output file path changed" ) ?;
181
-
182
- Ok ( ( ) )
172
+ s. dirty_because ( unit, "rerun-if-changed output file path changed" )
183
173
}
184
174
DirtyReason :: RerunIfChangedOutputPathsChanged { .. } => {
185
- s. dirty_because ( unit, "the rerun-if-changed instructions changed" ) ?;
186
-
187
- Ok ( ( ) )
175
+ s. dirty_because ( unit, "the rerun-if-changed instructions changed" )
188
176
}
189
177
DirtyReason :: EnvVarsChanged { .. } => {
190
- s. dirty_because ( unit, "the environment variables changed" ) ?;
191
-
192
- Ok ( ( ) )
178
+ s. dirty_because ( unit, "the environment variables changed" )
193
179
}
194
180
DirtyReason :: EnvVarChanged { name, .. } => {
195
- s. dirty_because ( unit, format_args ! ( "the env variable {name} changed" ) ) ?;
196
-
197
- Ok ( ( ) )
181
+ s. dirty_because ( unit, format_args ! ( "the env variable {name} changed" ) )
198
182
}
199
183
DirtyReason :: LocalFingerprintTypeChanged { .. } => {
200
- s. dirty_because ( unit, "the local fingerprint type changed" ) ?;
201
-
202
- Ok ( ( ) )
184
+ s. dirty_because ( unit, "the local fingerprint type changed" )
203
185
}
204
186
DirtyReason :: NumberOfDependenciesChanged { old, new } => s. dirty_because (
205
187
unit,
@@ -235,13 +217,10 @@ impl DirtyReason {
235
217
format_args ! ( "the file `{}` has changed ({after})" , file. display( ) ) ,
236
218
)
237
219
}
238
- StaleItem :: ChangedEnv { var, .. } => {
239
- s. dirty_because (
240
- unit,
241
- format_args ! ( "the environment variable {var} changed" ) ,
242
- ) ?;
243
- Ok ( ( ) )
244
- }
220
+ StaleItem :: ChangedEnv { var, .. } => s. dirty_because (
221
+ unit,
222
+ format_args ! ( "the environment variable {var} changed" ) ,
223
+ ) ,
245
224
} ,
246
225
FsStatus :: StaleDependency {
247
226
name,
0 commit comments