Fix the warns from clippy lints
Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
parent
22360207f4
commit
fe1b3b0f73
|
|
@ -1 +1 @@
|
|||
msrv = "1.65"
|
||||
msrv = "1.66"
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ service Events {
|
|||
//
|
||||
// Unlike many other methods in containerd, subscribers will get messages
|
||||
// from all namespaces unless otherwise specified. If this is not desired,
|
||||
// a filter can be provided in the format 'namespace==<namespace>' to
|
||||
// a filter can be provided in the format 'namespace=={namespace}' to
|
||||
// restrict the received events.
|
||||
rpc Subscribe(SubscribeRequest) returns (stream Envelope);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ impl ProcessLifecycle<ExecProcess> for RuncExecLifecycle {
|
|||
} else {
|
||||
// TODO this is kill from nix crate, it is os specific, maybe have annotated with target os
|
||||
kill(
|
||||
Pid::from_raw(p.pid as i32),
|
||||
Pid::from_raw(p.pid),
|
||||
nix::sys::signal::Signal::try_from(signal as i32).unwrap(),
|
||||
)
|
||||
.map_err(Into::into)
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ where
|
|||
})?;
|
||||
|
||||
let resp = ConnectResponse {
|
||||
shim_pid: process::id() as u32,
|
||||
shim_pid: process::id(),
|
||||
task_pid: container.pid() as u32,
|
||||
..Default::default()
|
||||
};
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ where
|
|||
let container = self.get_container(req.id()).await?;
|
||||
|
||||
Ok(ConnectResponse {
|
||||
shim_pid: std::process::id() as u32,
|
||||
shim_pid: std::process::id(),
|
||||
task_pid: container.pid().await as u32,
|
||||
..Default::default()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ mod tests {
|
|||
.write(false)
|
||||
.read(true)
|
||||
.create(false)
|
||||
.open(&path1)
|
||||
.open(path1)
|
||||
.unwrap();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue