From bea49fae069ae6c891df79eaac2583136af288fd Mon Sep 17 00:00:00 2001 From: Zhang Tianyang Date: Mon, 16 Sep 2024 17:21:54 +0800 Subject: [PATCH] ci: add MSRV Signed-off-by: Zhang Tianyang --- rust-toolchain.toml | 3 +++ vmm/task/src/streaming.rs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 rust-toolchain.toml diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..895a4233 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.74" +components = ["rustfmt", "clippy", "llvm-tools"] \ No newline at end of file diff --git a/vmm/task/src/streaming.rs b/vmm/task/src/streaming.rs index 0bff6808..6ef9a9cf 100644 --- a/vmm/task/src/streaming.rs +++ b/vmm/task/src/streaming.rs @@ -436,10 +436,12 @@ impl AsyncRead for StreamingStdin { } } +type Permit = Box>, SendError<()>>> + Send>; + pin_project_lite::pin_project! { pub struct StreamingOutput { sender: Sender>, - permit: Option>, SendError<()>>> + Send>>>, + permit: Option>, } }