diff --git a/src/messages.rs b/src/messages.rs index 2f7f7b1..ea08802 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -31,6 +31,7 @@ pub struct SsbMessageValue { // Enum representing the different possible message content types #[derive(Debug)] +#[allow(missing_docs)] pub enum SsbMessageContentType { About, Vote, diff --git a/src/sbot.rs b/src/sbot.rs index 9fff930..d63c741 100644 --- a/src/sbot.rs +++ b/src/sbot.rs @@ -271,7 +271,7 @@ impl Sbot { RecvMsg::RpcResponse(_type, body) => { // parse an item of type T from the message body using the provided // function for parsing - let item = f(&body)?; + let item = f(body)?; // return Ok(item) as the next value in the stream yield Ok(item) }