mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Add mark_human
This commit is contained in:
parent
af0f2733c7
commit
cd6c6d66ec
@ -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> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user