mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-20 20:52:07 +00:00
runtime-rs: ch: clippy fix
Simplify the code to keep rust's `clippy` happy. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
f06f72b5e9
commit
e3c2d727ba
@ -91,7 +91,7 @@ pub async fn cloud_hypervisor_vm_fs_add(
|
|||||||
mut socket: UnixStream,
|
mut socket: UnixStream,
|
||||||
fs_config: FsConfig,
|
fs_config: FsConfig,
|
||||||
) -> Result<Option<String>> {
|
) -> Result<Option<String>> {
|
||||||
let result = task::spawn_blocking(move || -> Result<Option<String>> {
|
task::spawn_blocking(move || -> Result<Option<String>> {
|
||||||
let response = simple_api_full_command_and_response(
|
let response = simple_api_full_command_and_response(
|
||||||
&mut socket,
|
&mut socket,
|
||||||
"PUT",
|
"PUT",
|
||||||
@ -102,7 +102,5 @@ pub async fn cloud_hypervisor_vm_fs_add(
|
|||||||
|
|
||||||
Ok(response)
|
Ok(response)
|
||||||
})
|
})
|
||||||
.await?;
|
.await?
|
||||||
|
|
||||||
result
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user