mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 06:04:31 -04:00
Fix some more new clippy warnings
This commit is contained in:
@@ -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"
|
||||
),
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -1049,6 +1049,8 @@ fn compute_limited(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#![allow(clippy::dbg_macro)]
|
||||
|
||||
use std::{
|
||||
collections::BTreeMap,
|
||||
future::ready,
|
||||
|
||||
Reference in New Issue
Block a user