From d9de33a932a93498d8bf8c6aaa463acb3da13d75 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 6 Jan 2016 19:25:15 +0100 Subject: [PATCH] Add runtime wrapper for reporting mode --- src/runtime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime.rs b/src/runtime.rs index 029e68a8..5eb3ddf7 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -135,6 +135,10 @@ impl<'a> Runtime<'a> { e } + pub fn report_exit(&self) -> bool { + self.config.report_exit() || self.configuration.report_exit() + } + } impl<'a> Debug for Runtime<'a> {