]> git.proxmox.com Git - rustc.git/blobdiff - src/libstd/sync/mpsc/oneshot.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / libstd / sync / mpsc / oneshot.rs
index 5b41525e06aaaccaa565945e47bb733e0b83c783..75f5621fa127e210783ae1a154cb749291dafdfd 100644 (file)
@@ -260,7 +260,7 @@ impl<T> Packet<T> {
         let state = match self.state.load(Ordering::SeqCst) {
             // Each of these states means that no further activity will happen
             // with regard to abortion selection
-            s @ EMPTY | s @ DATA | s @ DISCONNECTED => s,
+            s @ (EMPTY | DATA | DISCONNECTED) => s,
 
             // If we've got a blocked thread, then use an atomic to gain ownership
             // of it (may fail)