Fix the warns from clippy lints

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
utam0k 2022-12-18 13:45:59 +09:00
parent 22360207f4
commit fe1b3b0f73
No known key found for this signature in database
GPG Key ID: E9844426F4EA9E67
6 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
msrv = "1.65"
msrv = "1.66"

View File

@ -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);
}

View File

@ -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)

View File

@ -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()
};

View File

@ -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()
})

View File

@ -108,7 +108,7 @@ mod tests {
.write(false)
.read(true)
.create(false)
.open(&path1)
.open(path1)
.unwrap();
});