diff --git a/src/client.rs b/src/client.rs index 6bbe119..c5cfc82 100644 --- a/src/client.rs +++ b/src/client.rs @@ -86,7 +86,7 @@ pub struct Connection { /// A builder for the append command pub struct AppendCmd<'a, T: Read + Write> { - session: &'a Session, + session: &'a mut Session, content: &'a [u8], mailbox: &'a str, flags: Vec<&'a Flag<'a>>, @@ -1163,7 +1163,7 @@ impl Session { content: B, ) -> AppendCmd<'a, T> { AppendCmd { - session: &self, + session: self, content: content.as_ref(), mailbox: mailbox.as_ref(), flags: Vec::new(),