From: Yehuda Katz Date: Thu, 19 Jun 2014 18:02:24 +0000 (-0700) Subject: Add mark_human X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~997 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cd6c6d66ecbc27b07d42e85ea6f61336cc3faa4f;p=cargo.git Add mark_human --- diff --git a/src/cargo/util/errors.rs b/src/cargo/util/errors.rs index ff716fda3..dc5367550 100644 --- a/src/cargo/util/errors.rs +++ b/src/cargo/util/errors.rs @@ -27,6 +27,12 @@ pub trait CargoError { is_human: self.is_human() } } + + fn mark_human(self) -> Box { + let mut concrete = self.concrete(); + concrete.is_human = true; + box concrete as Box + } } pub trait FromError {