From 1eb377d065a1890bb115db54e70967e206450a66 Mon Sep 17 00:00:00 2001 From: notplants Date: Tue, 4 Jan 2022 15:02:20 -0500 Subject: [PATCH] Fix clippy error --- src/messages.rs | 1 + src/sbot.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) }