diff src/command.rs @ 15:e6dc51066703

cargo clippy
author AnaTofuZ <anatofuz@gmail.com>
date Sun, 01 Nov 2020 12:52:13 +0900
parents 56e9763abeef
children 1da4937628be
line wrap: on
line diff
--- a/src/command.rs	Fri Oct 30 13:58:33 2020 +0900
+++ b/src/command.rs	Sun Nov 01 12:52:13 2020 +0900
@@ -11,7 +11,7 @@
 
 pub fn start_command(user_name: &'static str, vm_name: String) {
     let vm_name = match vm_name.parse::<u8>() {
-        Ok(_) => String::from(format!("{}-{}", user_name, vm_name)),
+        Ok(_) => format!("{}-{}", user_name, vm_name),
         Err(_) => vm_name,
     };