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:
James O. D. Hunt 2023-03-22 11:56:54 +00:00
parent f06f72b5e9
commit e3c2d727ba

View File

@ -91,7 +91,7 @@ pub async fn cloud_hypervisor_vm_fs_add(
mut socket: UnixStream,
fs_config: FsConfig,
) -> 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(
&mut socket,
"PUT",
@ -102,7 +102,5 @@ pub async fn cloud_hypervisor_vm_fs_add(
Ok(response)
})
.await?;
result
.await?
}