From 4aa0d36c6ec1f7d150b5abe221b1f6e14faf4bba Mon Sep 17 00:00:00 2001 From: Muriel Paraire <72733662+MurielParaire@users.noreply.github.com> Date: Fri, 3 May 2024 21:54:15 +0200 Subject: [PATCH] fix: lint Signed-off-by: Muriel Paraire <72733662+MurielParaire@users.noreply.github.com> --- src/vmm/src/grpc/server.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/vmm/src/grpc/server.rs b/src/vmm/src/grpc/server.rs index bba8cae..a478656 100644 --- a/src/vmm/src/grpc/server.rs +++ b/src/vmm/src/grpc/server.rs @@ -116,7 +116,7 @@ impl VmmService { ) -> std::result::Result { // define file path let mut entire_path = curr_dir.to_os_string(); - entire_path.push(&end_path); + entire_path.push(end_path); // Check if the file is on the system, else build it let exists = Path::new(&entire_path) @@ -124,17 +124,11 @@ impl VmmService { .map_err(VmmErrors::VmmBuildEnvironment)?; if !exists { - info!( - "File {:?} not found, building it", - &entire_path - ); + info!("File {:?} not found, building it", &entire_path); let _ = self .run_command(command_type, args) .map_err(VmmErrors::VmmBuildEnvironment); - info!( - "File {:?} successfully build", - &entire_path - ); + info!("File {:?} successfully build", &entire_path); }; Ok(PathBuf::from(&entire_path)) }