From 0d1025c532b06c59898908e3def509f63eaa3257 Mon Sep 17 00:00:00 2001
From: ticki <ticki@users.noreply.github.com>
Date: Sat, 24 Sep 2016 19:12:46 +0200
Subject: [PATCH] Take a reference to the stream instead of the stream itself
 (in `is_tty`

---
 Cargo.toml | 2 +-
 src/tty.rs | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index bd8e2039..488ca40f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "termion"
-version = "1.0.8"
+version = "1.1.0"
 authors = ["ticki <Ticki@users.noreply.github.com>"]
 description = "A bindless library for manipulating terminals."
 repository = "https://github.com/ticki/termion"
diff --git a/src/tty.rs b/src/tty.rs
index 7413dcf8..deab3f46 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -3,7 +3,7 @@ use std::os::unix::io::AsRawFd;
 
 /// Is this stream an TTY?
 #[cfg(not(target_os = "redox"))]
-pub fn is_tty<T: AsRawFd>(stream: T) -> bool {
+pub fn is_tty<T: AsRawFd>(stream: &T) -> bool {
     use libc;
 
     unsafe { libc::isatty(stream.as_raw_fd()) == 1}
@@ -11,7 +11,7 @@ pub fn is_tty<T: AsRawFd>(stream: T) -> bool {
 
 /// This will panic.
 #[cfg(target_os = "redox")]
-pub fn is_tty<T: AsRawFd>(_stream: T) -> bool {
+pub fn is_tty<T: AsRawFd>(_stream: &T) -> bool {
     unimplemented!();
 }
 
-- 
GitLab