mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +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()
|
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> {
|
pub trait FromError<E> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user