Ensure unique nix library use with deps

This commit is contained in:
Matteo Settenvini 2022-08-24 12:51:16 +02:00
parent c35c83a4b2
commit b5797b12f1
Signed by: matteo
GPG Key ID: 8576CC1AD97D42DF
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const_format = "0.2"
libc = "0.2"
once_cell = "1.13"
log = "0.4"
nix = { version = "0.25", features = ["socket", "user", "sched"] }
nix = { version = "0.24", features = ["socket", "user", "sched"] }
tokio = { version = "1", features = ["rt"] }
trust-dns-resolver = "0.21"
trust-dns-proto = "0.21"

View File

@ -209,7 +209,7 @@ pub fn mock_dbus(responses: HashMap<Uid, Vec<Restrictions>>) -> JoinHandle<Resul
== DBUS_GET_RESTRICTIONS_METHOD
{
let user_id: u32 = msg.body()?;
match responses.get_mut(&Uid::from(user_id)) {
match responses.get_mut(&Uid::from_raw(user_id)) {
Some(answers) => match answers.pop() {
Some(a) => {
responses_size = responses_size - 1;