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
|
// Enum representing the different possible message content types
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub enum SsbMessageContentType {
|
pub enum SsbMessageContentType {
|
||||||
About,
|
About,
|
||||||
Vote,
|
Vote,
|
||||||
|
|
|
@ -271,7 +271,7 @@ impl Sbot {
|
||||||
RecvMsg::RpcResponse(_type, body) => {
|
RecvMsg::RpcResponse(_type, body) => {
|
||||||
// parse an item of type T from the message body using the provided
|
// parse an item of type T from the message body using the provided
|
||||||
// function for parsing
|
// function for parsing
|
||||||
let item = f(&body)?;
|
let item = f(body)?;
|
||||||
// return Ok(item) as the next value in the stream
|
// return Ok(item) as the next value in the stream
|
||||||
yield Ok(item)
|
yield Ok(item)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue