qemu-vte: fix build, use workspace deps

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2024-01-17 14:38:19 +04:00
parent 67b334e5bb
commit abca0e48d5
2 changed files with 3 additions and 3 deletions

View File

@ -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]

View File

@ -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::<gio::PollableInputStream>()