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::()