Skip to content

Commit

Permalink
add allow(dead_code) for test struct that needs to be unsync
Browse files Browse the repository at this point in the history
  • Loading branch information
nrxus committed Apr 4, 2024
1 parent 9a6e97d commit e4064f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration_tests/tests/streams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ async fn status_from_server_stream_with_source() {
jh.await.unwrap();
}

// the inner field is unused on purpose; it is just there to make this struct Unsync.
#[allow(dead_code)]
struct Unsync(*mut ());

unsafe impl Send for Unsync {}
Expand Down

0 comments on commit e4064f8

Please sign in to comment.