Optimized mark_human for ConcreteCargoError

This commit is contained in:
Yehuda Katz 2014-06-19 11:52:49 -07:00
parent 90149584c0
commit 96ab5d73ff

View File

@ -201,6 +201,11 @@ impl CargoError for ConcreteCargoError {
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 {
self.is_human
}