mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
rust-agent: Remove useless braces
This addresses the following warning: warning: unnecessary braces around assigned value --> src/rpc.rs:1411:26 | 1411 | detail.init_daemon = { unistd::getpid() == Pid::from_raw(1) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces | = note: `#[warn(unused_braces)]` on by default Fixes: #750 Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
cc4f02e2b6
commit
8ed61b1bb9
@ -1447,7 +1447,7 @@ fn get_agent_details() -> AgentDetails {
|
|||||||
|
|
||||||
detail.set_version(AGENT_VERSION.to_string());
|
detail.set_version(AGENT_VERSION.to_string());
|
||||||
detail.set_supports_seccomp(false);
|
detail.set_supports_seccomp(false);
|
||||||
detail.init_daemon = { unistd::getpid() == Pid::from_raw(1) };
|
detail.init_daemon = unistd::getpid() == Pid::from_raw(1);
|
||||||
|
|
||||||
detail.device_handlers = RepeatedField::new();
|
detail.device_handlers = RepeatedField::new();
|
||||||
detail.storage_handlers = RepeatedField::from_vec(
|
detail.storage_handlers = RepeatedField::from_vec(
|
||||||
|
Loading…
Reference in New Issue
Block a user