refactor: move must_use to AppendCmd
This commit is contained in:
parent
19af971c9a
commit
029da6fd52
1 changed files with 1 additions and 1 deletions
|
|
@ -85,6 +85,7 @@ pub struct Connection<T: Read + Write> {
|
|||
}
|
||||
|
||||
/// A builder for the append command
|
||||
#[must_use]
|
||||
pub struct AppendCmd<'a, T: Read + Write> {
|
||||
session: &'a mut Session<T>,
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue