mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Optimized mark_human for ConcreteCargoError
This commit is contained in:
parent
90149584c0
commit
96ab5d73ff
@ -201,6 +201,11 @@ impl CargoError for ConcreteCargoError {
|
|||||||
box self as Box<CargoError>
|
box self as Box<CargoError>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn mark_human(mut self) -> Box<CargoError> {
|
||||||
|
self.is_human = true;
|
||||||
|
box self as Box<CargoError>
|
||||||
|
}
|
||||||
|
|
||||||
fn is_human(&self) -> bool {
|
fn is_human(&self) -> bool {
|
||||||
self.is_human
|
self.is_human
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user