Skip to content

Commit 25040c9

Browse files
authored
Remove usage of unstable features (#332) (#331)
Use `static_assertions::assert_not_impl_any` to assert that OsIpcSender doesn't implement Sync instead of relying on unstable rustc features. This also makes it clearer what this code does.
1 parent 7741ad6 commit 25040c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
features: ["", "force-inprocess", "memfd"]
17+
features: ["", "force-inprocess", "memfd", "async"]
1818
steps:
1919
- uses: actions/checkout@v3
2020

@@ -42,7 +42,7 @@ jobs:
4242
runs-on: macos-latest
4343
strategy:
4444
matrix:
45-
features: ["", "force-inprocess"]
45+
features: ["", "force-inprocess", "async"]
4646

4747
steps:
4848
- uses: actions/checkout@v3
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: windows-latest
6464
strategy:
6565
matrix:
66-
features: ["", "--features force-inprocess", "--features windows-shared-memory-equality"]
66+
features: ["", "--features force-inprocess", "--features windows-shared-memory-equality", "--features async"]
6767
target: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"]
6868

6969
steps:

src/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ fn transfer_closed_sender() {
680680
#[test]
681681
fn test_receiver_stream() {
682682
use futures::task::Context;
683-
use futures::Poll;
683+
use futures::task::Poll;
684684
use futures::Stream;
685685
use std::pin::Pin;
686686
let (tx, rx) = ipc::channel().unwrap();

0 commit comments

Comments
 (0)