chore: Clippy fixes

This commit is contained in:
Ginger
2026-04-13 17:31:52 -04:00
parent e185f56f3a
commit e70004c98f
53 changed files with 110 additions and 118 deletions
+1 -2
View File
@@ -4,7 +4,7 @@ use bytes::BytesMut;
use conduwuit::{Err, Result, debug_error, err, utils, utils::response::LimitReadExt, warn};
use reqwest::Client;
use ruma::api::{
IncomingResponse, MatrixVersion, OutgoingRequest,
IncomingResponse, OutgoingRequest,
auth_scheme::{AppserviceToken, SendAccessToken},
path_builder::VersionHistory,
};
@@ -23,7 +23,6 @@ where
+ Debug
+ Send,
{
const VERSIONS: [MatrixVersion; 1] = [MatrixVersion::V1_15];
let http_request = request
.try_into_http_request::<BytesMut>(
base_url,
+1 -1
View File
@@ -224,7 +224,7 @@ fn parse_servercurrentevent(key: &[u8], value: &[u8]) -> Result<(Destination, Se
.ok_or_else(|| Error::bad_database("Invalid bytes in servercurrentpdus."))?;
(
Destination::Push(user_id.to_owned(), pushkey_string),
Destination::Push(user_id, pushkey_string),
if value.is_empty() {
SendingEvent::Pdu(event.into())
} else {
+1 -3
View File
@@ -203,9 +203,7 @@ impl Service {
S: Stream<Item = OwnedServerName> + Send,
{
let requests = servers
.map(|server| {
(Destination::Federation(server.into()), SendingEvent::Pdu(pdu_id.to_owned()))
})
.map(|server| (Destination::Federation(server), SendingEvent::Pdu(pdu_id.to_owned())))
.collect::<Vec<_>>()
.await;