From d2b4957292e56bbe596be2176a64793b11476b30 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Sun, 10 Aug 2025 05:15:53 +0100 Subject: [PATCH] Disable threads test on wasm Test fails here: https://github.com/tokio-rs/bytes/actions/runs/16857088623/job/47751892067?pr=791 --- src/bytes_mut.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 4d6e80eab..cbef864b8 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -226,6 +226,9 @@ impl BytesMut { /// # Examples /// /// ``` + /// # // Threads do not work on wasm. + /// # #[cfg(not(target_family = "wasm"))] { + /// /// use bytes::{BytesMut, BufMut}; /// use std::thread; /// @@ -240,6 +243,8 @@ impl BytesMut { /// /// assert_eq!(&b2[..], b"hello world"); /// th.join().unwrap(); + /// + /// # } /// ``` #[inline] pub fn freeze(self) -> Bytes {