From 2a9e5b6ca391692f3789acf21ad675dd1ff34b2a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 8 Oct 2019 01:20:01 -0700 Subject: [PATCH] Format with rustfmt 2019-09-08 --- src/error.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/error.rs b/src/error.rs index f191823..b99fd9a 100644 --- a/src/error.rs +++ b/src/error.rs @@ -37,9 +37,7 @@ impl Error { let backtrace = backtrace_if_absent!(error); // Safety: passing typeid of the right type E. - unsafe { - Error::construct(error, type_id, backtrace) - } + unsafe { Error::construct(error, type_id, backtrace) } } pub(crate) fn new_adhoc(message: M, backtrace: Option) -> Self @@ -51,9 +49,7 @@ impl Error { // Safety: MessageError is repr(transparent) so MessageError has the // same layout as the typeid specifies. - unsafe { - Error::construct(error, type_id, backtrace) - } + unsafe { Error::construct(error, type_id, backtrace) } } // Takes backtrace as argument rather than capturing it here so that the