From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- third_party/rust/tokio/src/signal/windows/stub.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 third_party/rust/tokio/src/signal/windows/stub.rs (limited to 'third_party/rust/tokio/src/signal/windows/stub.rs') diff --git a/third_party/rust/tokio/src/signal/windows/stub.rs b/third_party/rust/tokio/src/signal/windows/stub.rs new file mode 100644 index 0000000000..88630543da --- /dev/null +++ b/third_party/rust/tokio/src/signal/windows/stub.rs @@ -0,0 +1,13 @@ +//! Stub implementations for the platform API so that rustdoc can build linkable +//! documentation on non-windows platforms. + +use crate::signal::RxFuture; +use std::io; + +pub(super) fn ctrl_c() -> io::Result { + panic!() +} + +pub(super) fn ctrl_break() -> io::Result { + panic!() +} -- cgit v1.2.3