drivers/acpid: Update to redox-scheme 0.8
This commit is contained in:
Generated
+1
-1
@@ -46,7 +46,7 @@ dependencies = [
|
||||
"num-traits",
|
||||
"parking_lot 0.12.5",
|
||||
"plain",
|
||||
"redox-scheme 0.6.2",
|
||||
"redox-scheme 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"redox_event",
|
||||
"redox_syscall",
|
||||
"ron",
|
||||
|
||||
@@ -23,6 +23,6 @@ amlserde = { path = "../amlserde" }
|
||||
common = { path = "../common" }
|
||||
daemon = { path = "../../daemon" }
|
||||
libredox = "0.1.3"
|
||||
redox-scheme = "0.6.2"
|
||||
redox-scheme = "0.8.2"
|
||||
arrayvec = "0.7.6"
|
||||
serde = { version = "1.0.228", features = ["derive"] }
|
||||
|
||||
@@ -373,7 +373,13 @@ impl SchemeSync for AcpiScheme<'_> {
|
||||
Err(Error::new(EBADF))
|
||||
}
|
||||
|
||||
fn call(&mut self, id: usize, payload: &mut [u8], _metadata: &[u64]) -> Result<usize> {
|
||||
fn call(
|
||||
&mut self,
|
||||
id: usize,
|
||||
payload: &mut [u8],
|
||||
_metadata: &[u64],
|
||||
_ctx: &CallerCtx,
|
||||
) -> Result<usize> {
|
||||
let handle = self.handles.get_mut(&id).ok_or(Error::new(EBADF))?;
|
||||
if !handle.allowed_to_eval {
|
||||
return Err(Error::new(EPERM));
|
||||
|
||||
Reference in New Issue
Block a user