asupersync 0.3.1

Spec-first, cancel-correct, capability-secure async runtime for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- src/service/buffer.rs
+++ src/service/buffer.rs
@@ -260,11 +260,9 @@ where
 {
     fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
         loop {
             let this = self.as_mut().get_mut();
 
-            let state = std::mem::replace(&mut this.state, BufferFutureState::Done);
-
-            match state {
+            match &mut this.state {
                 BufferFutureState::WaitingForReady {
-                    mut request,
+                    request,
                     shared,