Fix clippy error
This commit is contained in:
parent
5711efbece
commit
1eb377d065
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue