From 029da6fd5226c1aa607881a66907a8cfc4878325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=B8cker-Larsen?= Date: Mon, 21 Dec 2020 11:19:42 +0800 Subject: [PATCH] refactor: move must_use to AppendCmd --- src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.rs b/src/client.rs index e7833e4..5d4ddd4 100644 --- a/src/client.rs +++ b/src/client.rs @@ -85,6 +85,7 @@ pub struct Connection { } /// A builder for the append command +#[must_use] pub struct AppendCmd<'a, T: Read + Write> { session: &'a mut Session, content: &'a [u8], @@ -126,7 +127,6 @@ impl<'a, T: Read + Write> AppendCmd<'a, T> { } /// Run command - #[must_use = "always run a command once options are configured"] pub fn run(&mut self) -> Result<()> { let flagstr = self .flags