aboutsummaryrefslogtreecommitdiffstats
path: root/src/pty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pty.rs')
-rw-r--r--src/pty.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pty.rs b/src/pty.rs
index 39ffd70..383e81d 100644
--- a/src/pty.rs
+++ b/src/pty.rs
@@ -34,8 +34,8 @@ impl Size {
}
}
-impl From<Size> for nix::pty::Winsize {
- fn from(size: Size) -> Self {
+impl From<&Size> for nix::pty::Winsize {
+ fn from(size: &Size) -> Self {
Self {
ws_row: size.row,
ws_col: size.col,
@@ -78,7 +78,7 @@ impl Pty {
&self.pt
}
- pub fn pts(&self, size: Option<Size>) -> Result<std::fs::File> {
+ pub fn pts(&self, size: Option<&Size>) -> Result<std::fs::File> {
let fh = std::fs::OpenOptions::new()
.read(true)
.write(true)