Fix clippy error

This commit is contained in:
notplants 2022-01-04 15:02:20 -05:00
parent 5711efbece
commit 1eb377d065
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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)
}