refactor: move must_use to AppendCmd

This commit is contained in:
Michael Bøcker-Larsen 2020-12-21 11:19:42 +08:00
parent 19af971c9a
commit 029da6fd52
No known key found for this signature in database
GPG key ID: FEC5F9A03674F95A

View file

@ -85,6 +85,7 @@ pub struct Connection<T: Read + Write> {
} }
/// A builder for the append command /// A builder for the append command
#[must_use]
pub struct AppendCmd<'a, T: Read + Write> { pub struct AppendCmd<'a, T: Read + Write> {
session: &'a mut Session<T>, session: &'a mut Session<T>,
content: &'a [u8], content: &'a [u8],
@ -126,7 +127,6 @@ impl<'a, T: Read + Write> AppendCmd<'a, T> {
} }
/// Run command /// Run command
#[must_use = "always run a command once options are configured"]
pub fn run(&mut self) -> Result<()> { pub fn run(&mut self) -> Result<()> {
let flagstr = self let flagstr = self
.flags .flags