Add upstream patch to fix compiling tests with crossbeam-channel >=0.5.13

epel10
Fabio Valentini 8 months ago
parent 2b556d96ee
commit 1d4223cb8b
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -0,0 +1,22 @@
From e10d854c51422f8204cade760f2e1a406675f2ec Mon Sep 17 00:00:00 2001
From: rikkaka <dsywh123@gmail.com>
Date: Sat, 8 Jun 2024 20:10:21 +0800
Subject: [PATCH] add const _IS_BIASED
---
tests/mpsc.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/mpsc.rs b/tests/mpsc.rs
index 213b9d8..9fb69be 100644
--- a/tests/mpsc.rs
+++ b/tests/mpsc.rs
@@ -175,6 +175,8 @@ macro_rules! select {
(
$($name:pat = $rx:ident.$meth:ident() => $code:expr),+
) => ({
+ const _IS_BIASED: bool = false;
+
crossbeam_channel_internal! {
$(
recv(($rx).inner) -> res => {

@ -1,3 +0,0 @@
# rust-flume
The rust-flume package

@ -16,6 +16,8 @@ Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused, benchmark-only criterion dev-dependency
Patch: flume-fix-metadata.diff
# * upstream patch to fix compiling tests with crossbeam-channel >=0.5.13
Patch: https://github.com/zesterer/flume/pull/149.patch
BuildRequires: cargo-rpm-macros >= 24

Loading…
Cancel
Save