From cd6c6d66ecbc27b07d42e85ea6f61336cc3faa4f Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Thu, 19 Jun 2014 11:02:24 -0700 Subject: [PATCH] Add mark_human --- src/cargo/util/errors.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 {