Skip to content

Commit

Permalink
Fix a warning on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 11, 2023
1 parent 2bda3c7 commit 0dd79cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/wasi-common/cap-std-sync/src/sched/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// taken the time to improve it. See bug #2880.

use once_cell::sync::Lazy;
use std::ops::Deref;
use std::sync::mpsc::{self, Receiver, RecvTimeoutError, Sender, TryRecvError};
use std::sync::Mutex;
use std::thread;
Expand Down Expand Up @@ -50,7 +49,7 @@ pub async fn poll_oneoff_<'a>(
for s in poll.rw_subscriptions() {
match s {
Subscription::Read(r) => {
if file_is_stdin(r.file.deref()) {
if file_is_stdin(r.file) {
stdin_read_subs.push(r);
} else if r.file.pollable().is_some() {
immediate_reads.push(r);
Expand Down

0 comments on commit 0dd79cc

Please sign in to comment.