mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-09-28 05:21:34 +00:00
Format with rustfmt 2019-09-08
This commit is contained in:
parent
db2a298dc9
commit
2a9e5b6ca3
@ -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<M>(message: M, backtrace: Option<Backtrace>) -> Self
|
||||
@ -51,9 +49,7 @@ impl Error {
|
||||
|
||||
// Safety: MessageError is repr(transparent) so MessageError<M> 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user