Add mark_human

This commit is contained in:
Yehuda Katz 2014-06-19 11:02:24 -07:00
parent af0f2733c7
commit cd6c6d66ec

View File

@ -27,6 +27,12 @@ pub trait CargoError {
is_human: self.is_human()
}
}
fn mark_human(self) -> Box<CargoError> {
let mut concrete = self.concrete();
concrete.is_human = true;
box concrete as Box<CargoError>
}
}
pub trait FromError<E> {