Skip to content

Commit

Permalink
Merge branch 'kuasar-io:main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziy1-Tan authored Sep 19, 2024
2 parents da961ae + feb4e71 commit a699d9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[toolchain]
channel = "1.74"
components = ["rustfmt", "clippy", "llvm-tools"]
4 changes: 3 additions & 1 deletion vmm/task/src/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,12 @@ impl AsyncRead for StreamingStdin {
}
}

type Permit = Box<dyn Future<Output = Result<OwnedPermit<Vec<u8>>, SendError<()>>> + Send>;

pin_project_lite::pin_project! {
pub struct StreamingOutput {
sender: Sender<Vec<u8>>,
permit: Option<Pin<Box<dyn Future<Output = Result<OwnedPermit<Vec<u8>>, SendError<()>>> + Send>>>,
permit: Option<Pin<Permit>>,
}
}

Expand Down

0 comments on commit a699d9b

Please sign in to comment.