Skip to content

Commit

Permalink
zvariant: Fix compilation on non-unix platforms
Browse files Browse the repository at this point in the history
Requires a release with dbus2/zbus#651
  • Loading branch information
felinira committed Feb 22, 2024
1 parent b65df7e commit 0d6999b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gvdb/src/read/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,15 @@ impl GvdbFile {

// On non-unix systems this function lacks the FD argument
#[cfg(unix)]
let mut de = gvariant::Deserializer::new(
let mut de: gvariant::Deserializer<_> = gvariant::Deserializer::new(
data,
None::<&[zvariant::Fd]>,
zvariant::Value::signature(),
context,
)?;
#[cfg(not(unix))]
let mut de = gvariant::Deserializer::new(&data, zvariant::Value::signature(), context)?;
let mut de: gvariant::Deserializer<()> =
gvariant::Deserializer::new(&data, zvariant::Value::signature(), context)?;

Ok(zvariant::Value::deserialize(&mut de)?)
}
Expand Down

0 comments on commit 0d6999b

Please sign in to comment.