Fix some more new clippy warnings

This commit is contained in:
Damir Jelić
2024-02-07 13:21:21 +01:00
parent e33c44266e
commit 787d04190e
4 changed files with 11 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ impl From<matrix_sdk::ruma::events::room::member::MembershipState> for Membershi
matrix_sdk::ruma::events::room::member::MembershipState::Leave => {
MembershipState::Leave
}
_ => todo!(
_ => unimplemented!(
"Handle Custom case: https://github.com/matrix-org/matrix-rust-sdk/issues/1254"
),
}

View File

@@ -223,14 +223,14 @@ async fn event_type_filter_include_only_room_names() {
timeline
.handle_live_state_event(
&ALICE,
RoomNameEventContent::new("A new room name".to_string()),
RoomNameEventContent::new("A new room name".to_owned()),
None,
)
.await;
timeline
.handle_live_state_event(
&ALICE,
RoomNameEventContent::new("A new room name (again)".to_string()),
RoomNameEventContent::new("A new room name (again)".to_owned()),
None,
)
.await;
@@ -238,7 +238,7 @@ async fn event_type_filter_include_only_room_names() {
timeline
.handle_live_state_event(
&ALICE,
RoomTopicEventContent::new("A new room topic".to_string()),
RoomTopicEventContent::new("A new room topic".to_owned()),
None,
)
.await;
@@ -272,14 +272,14 @@ async fn event_type_filter_exclude_messages() {
timeline
.handle_live_state_event(
&ALICE,
RoomNameEventContent::new("A new room name".to_string()),
RoomNameEventContent::new("A new room name".to_owned()),
None,
)
.await;
timeline
.handle_live_state_event(
&ALICE,
RoomNameEventContent::new("A new room name (again)".to_string()),
RoomNameEventContent::new("A new room name (again)".to_owned()),
None,
)
.await;
@@ -287,7 +287,7 @@ async fn event_type_filter_exclude_messages() {
timeline
.handle_live_state_event(
&ALICE,
RoomTopicEventContent::new("A new room topic".to_string()),
RoomTopicEventContent::new("A new room topic".to_owned()),
None,
)
.await;

View File

@@ -162,7 +162,7 @@ impl OidcBackend for MockImpl {
_client_metadata: VerifiedClientMetadata,
_software_statement: Option<String>,
) -> Result<ClientRegistrationResponse, OidcError> {
todo!()
unimplemented!()
}
async fn build_par_authorization_url(
@@ -172,7 +172,7 @@ impl OidcBackend for MockImpl {
_authorization_endpoint: Url,
_authorization_data: AuthorizationRequestData,
) -> Result<(Url, AuthorizationValidationData), OidcError> {
todo!()
unimplemented!()
}
async fn revoke_token(

View File

@@ -1049,6 +1049,8 @@ fn compute_limited(
#[cfg(test)]
mod tests {
#![allow(clippy::dbg_macro)]
use std::{
collections::BTreeMap,
future::ready,