Commit d059eb04 authored by Zeeshan Ali's avatar Zeeshan Ali
Browse files

Merge branch 'fd' into 'main'

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

See merge request !300
parents cf489ca9 95586670
Pipeline #318788 passed with stages
in 4 minutes and 55 seconds
......@@ -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