]> Repositorios git - scryer-prolog.git/commitdiff
fix unused import warning on windows
authorSkgland <[email protected]>
Wed, 22 Apr 2026 20:42:35 +0000 (22:42 +0200)
committerSkgland <[email protected]>
Sat, 25 Apr 2026 14:19:58 +0000 (16:19 +0200)
src/machine/streams.rs

index 94a9b34d357c9749c2d4ff255568ee4375275737..9a2d56f46609c8eaa6b1077cb9cb420682541a97 100644 (file)
@@ -23,7 +23,7 @@ use std::fmt::Debug;
 use std::fs::{File, OpenOptions};
 use std::hash::Hash;
 use std::io;
-use std::io::{Cursor, ErrorKind, IsTerminal, Read, Seek, SeekFrom, Write};
+use std::io::{Cursor, ErrorKind, Read, Seek, SeekFrom, Write};
 use std::mem::ManuallyDrop;
 use std::net::{Shutdown, TcpStream};
 use std::ops::{Deref, DerefMut};
@@ -657,6 +657,8 @@ impl Stream {
 
     #[inline]
     pub fn stdin(arena: &mut Arena, add_history: bool) -> Stream {
+        #[cfg(unix)]
+        use std::io::IsTerminal;
         #[cfg(unix)]
         if !std::io::stdin().is_terminal() {
             use std::os::unix::io::{FromRawFd, RawFd};