Skip to content

Commit

Permalink
Remove usage of unstable features (#332) (#331)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mrobinson authored Nov 16, 2023
1 parent 7741ad6 commit 25040c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
features: ["", "force-inprocess", "memfd"]
features: ["", "force-inprocess", "memfd", "async"]
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
features: ["", "force-inprocess"]
features: ["", "force-inprocess", "async"]

steps:
- uses: actions/checkout@v3
Expand All @@ -63,7 +63,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
features: ["", "--features force-inprocess", "--features windows-shared-memory-equality"]
features: ["", "--features force-inprocess", "--features windows-shared-memory-equality", "--features async"]
target: ["x86_64-pc-windows-msvc", "i686-pc-windows-msvc"]

steps:
Expand Down
2 changes: 1 addition & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ fn transfer_closed_sender() {
#[test]
fn test_receiver_stream() {
use futures::task::Context;
use futures::Poll;
use futures::task::Poll;
use futures::Stream;
use std::pin::Pin;
let (tx, rx) = ipc::channel().unwrap();
Expand Down

0 comments on commit 25040c9

Please sign in to comment.