mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Fix cargo clippy and doc errors after Rust update to 1.66
This commit is contained in:
10
src/chat.rs
10
src/chat.rs
@@ -768,7 +768,7 @@ impl ChatId {
|
||||
paramsv![self],
|
||||
)
|
||||
.await?;
|
||||
Ok(count as usize)
|
||||
Ok(count)
|
||||
}
|
||||
|
||||
pub async fn get_fresh_msg_cnt(self, context: &Context) -> Result<usize> {
|
||||
@@ -793,7 +793,7 @@ impl ChatId {
|
||||
paramsv![MessageState::InFresh, self],
|
||||
)
|
||||
.await?;
|
||||
Ok(count as usize)
|
||||
Ok(count)
|
||||
}
|
||||
|
||||
pub(crate) async fn get_param(self, context: &Context) -> Result<Params> {
|
||||
@@ -1474,7 +1474,7 @@ impl Chat {
|
||||
new_rfc724_mid,
|
||||
self.id,
|
||||
ContactId::SELF,
|
||||
to_id as i32,
|
||||
to_id,
|
||||
timestamp,
|
||||
msg.viewtype,
|
||||
msg.state,
|
||||
@@ -1522,7 +1522,7 @@ impl Chat {
|
||||
new_rfc724_mid,
|
||||
self.id,
|
||||
ContactId::SELF,
|
||||
to_id as i32,
|
||||
to_id,
|
||||
timestamp,
|
||||
msg.viewtype,
|
||||
msg.state,
|
||||
@@ -3261,7 +3261,7 @@ pub(crate) async fn get_chat_cnt(context: &Context) -> Result<usize> {
|
||||
paramsv![],
|
||||
)
|
||||
.await?;
|
||||
Ok(count as usize)
|
||||
Ok(count)
|
||||
} else {
|
||||
Ok(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user