diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2020-03-07 16:31:30 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2020-03-07 16:31:30 +0000 |
| commit | 9f3679fe4485aa4be4a0de9abc8aca938c60db36 (patch) | |
| tree | d24e4b678140f29b8c683c83f737c057cbf10ff4 /src/libpanic_unwind | |
| parent | 04f24b7c69a576533a3dba889c1a78f21e0d38a9 (diff) | |
Apply review feedback
Diffstat (limited to 'src/libpanic_unwind')
| -rw-r--r-- | src/libpanic_unwind/seh.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpanic_unwind/seh.rs b/src/libpanic_unwind/seh.rs index c1656023b60..c294fe26327 100644 --- a/src/libpanic_unwind/seh.rs +++ b/src/libpanic_unwind/seh.rs @@ -237,7 +237,7 @@ static mut TYPE_DESCRIPTOR: _TypeDescriptor = _TypeDescriptor { macro_rules! define_cleanup { ($abi:tt) => { unsafe extern $abi fn exception_cleanup(e: *mut Exception) { - if let Some(b) = e.read().data { + if let Exception { data: Some(b) } = e.read() { drop(b); super::__rust_drop_panic(); } |
