From 27f74629bcb5785c1e415d815645d43a3bceff19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 2 Jun 2022 13:44:31 +0200 Subject: [PATCH] update to proxmox-lang 1.1 / proxmox-sys 0.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- Cargo.toml | 3 ++- src/main.rs | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8dd4a12..2f3a3a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,5 @@ mio = { version = "0.8", features = [ "net", "os-ext" ] } ureq = { version = "2.4", default-features = false, features = [ "gzip" ] } clap = "2.33" proxmox-io = "1" -proxmox-sys = "0.2" +proxmox-lang = "1.1" +proxmox-sys = "0.3" diff --git a/src/main.rs b/src/main.rs index 16150c5..f53a726 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,8 +14,8 @@ use mio::unix::SourceFd; use mio::{Events, Interest, Poll, Token}; use proxmox_io::ByteBuffer; +use proxmox_lang::error::io_err_other; use proxmox_sys::{ - error::io_err_other, linux::pty::{make_controlling_terminal, PTY}, }; @@ -242,7 +242,7 @@ fn run_pty(cmd: &OsStr, params: clap::OsValues) -> Result { command.spawn()?; - pty.set_size(80, 20).map_err(|x| x.as_errno().unwrap())?; + pty.set_size(80, 20)?; Ok(pty) } -- 2.39.2