Ensure unique nix library use with deps
This commit is contained in:
parent
c35c83a4b2
commit
b5797b12f1
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue