Commit 95586670 authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

zx: Generate `zvariant::Fd` instead of `RawFd`

`RawFd` is just an alias for `c_int` (usually `i32`), which makes the
call fail since dbus uses a distinct type for file descriptors.
parent cf489ca9
......@@ -167,7 +167,7 @@ fn to_rust_type(ty: &str, input: bool) -> String {
i64::SIGNATURE_CHAR => "i64".into(),
u64::SIGNATURE_CHAR => "u64".into(),
f64::SIGNATURE_CHAR => "f64".into(),
Fd::SIGNATURE_CHAR => "std::os::unix::io::RawFd".into(),
Fd::SIGNATURE_CHAR => "zvariant::Fd".into(),
<&str>::SIGNATURE_CHAR => (if input || as_ref { "&str" } else { "String" }).into(),
ObjectPath::SIGNATURE_CHAR => (if input {
if as_ref {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment