diff options
Diffstat (limited to 'vendor/once_cell/src/race.rs')
-rw-r--r-- | vendor/once_cell/src/race.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/once_cell/src/race.rs b/vendor/once_cell/src/race.rs index ee3d51a58..fe36fa174 100644 --- a/vendor/once_cell/src/race.rs +++ b/vendor/once_cell/src/race.rs @@ -351,7 +351,7 @@ mod once_box { Ordering::AcqRel, Ordering::Acquire, ); - if let Err(_) = exchange { + if exchange.is_err() { let value = unsafe { Box::from_raw(ptr) }; return Err(value); } |