From abca0e48d5cb6d841dcf69599264334ee38e8f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 17 Jan 2024 14:38:19 +0400 Subject: [PATCH] qemu-vte: fix build, use workspace deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- qemu-vte/Cargo.toml | 4 ++-- qemu-vte/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qemu-vte/Cargo.toml b/qemu-vte/Cargo.toml index a4f7738..14a4941 100644 --- a/qemu-vte/Cargo.toml +++ b/qemu-vte/Cargo.toml @@ -7,8 +7,8 @@ edition = "2018" log = "0.4" pretty_env_logger = "0.4" once_cell = "1.5" -zbus = { version = "3.0" } -qemu-display = { path = "../qemu-display" } +zbus.workspace = true +qemu-display.workspace = true futures = "0.3.13" [dependencies.vte] diff --git a/qemu-vte/src/main.rs b/qemu-vte/src/main.rs index 6b323d9..872aca5 100644 --- a/qemu-vte/src/main.rs +++ b/qemu-vte/src/main.rs @@ -37,7 +37,7 @@ fn main() { c.proxy.name().await.expect("Chardev not found"); let (p0, p1) = UnixStream::pair().unwrap(); - if c.proxy.register(p1.as_raw_fd().into()).await.is_ok() { + if c.proxy.register((&p1).into()).await.is_ok() { let ostream = unsafe { gio::UnixOutputStream::with_fd(p0.as_raw_fd()) }; let istream = unsafe { gio::UnixInputStream::take_fd(p0) } .dynamic_cast::()