diff --git a/src/command/list.rs b/src/command/list.rs index fed9ccd..fc42328 100644 --- a/src/command/list.rs +++ b/src/command/list.rs @@ -11,10 +11,7 @@ impl ListCommand { pub fn build(self) -> super::Command { let uuids = self.uuids.unwrap_or(false); - let mut s = format!("list"); - if uuids { - s.push_str(" uuids"); - } + let s = format!("list {}", if uuids { "uuids" } else {""} ); super::Command(s) } } \ No newline at end of file