diff --git a/src/devices.rs b/src/devices.rs index d5325c1..eef95f1 100644 --- a/src/devices.rs +++ b/src/devices.rs @@ -171,9 +171,9 @@ impl ControllerInternal for DevicesController { for i in &res.devices { if i.allow { - let _ = self.allow_device(i.devtype, i.major, i.minor, &i.access); + self.allow_device(i.devtype, i.major, i.minor, &i.access)?; } else { - let _ = self.deny_device(i.devtype, i.major, i.minor, &i.access); + self.deny_device(i.devtype, i.major, i.minor, &i.access)?; } }