From db3e0f846ed18b62bf8419b37e68262fb2e1ac02 Mon Sep 17 00:00:00 2001 From: Raptorox <70806316+Raptorox@users.noreply.github.com> Date: Tue, 28 Jul 2026 22:38:33 +0200 Subject: [PATCH] shorten list build --- src/command/list.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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