Skip to content

Commit 08d9cbc

Browse files
committed
Optimized mark_human for ConcreteCargoError
1 parent fbbaa1a commit 08d9cbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cargo/util/errors.rs

+5
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ impl CargoError for ConcreteCargoError {
201201
box self as Box<CargoError>
202202
}
203203

204+
fn mark_human(mut self) -> Box<CargoError> {
205+
self.is_human = true;
206+
box self as Box<CargoError>
207+
}
208+
204209
fn is_human(&self) -> bool {
205210
self.is_human
206211
}

0 commit comments

Comments
 (0)