Fix a bunch of clippy lints
This commit is contained in:
parent
364820aae4
commit
a6bb9bbe68
8 changed files with 77 additions and 85 deletions
|
@ -147,7 +147,7 @@ where
|
|||
|
||||
let result = find_actual_destination(globals, &destination).await;
|
||||
|
||||
(result.0, result.1.clone().into_uri_string())
|
||||
(result.0, result.1.into_uri_string())
|
||||
};
|
||||
|
||||
let actual_destination_str = actual_destination.clone().into_https_string();
|
||||
|
@ -1529,7 +1529,7 @@ async fn upgrade_outlier_to_timeline_pdu(
|
|||
None
|
||||
};
|
||||
|
||||
if !state_res::event_auth::auth_check(
|
||||
let check_result = state_res::event_auth::auth_check(
|
||||
&room_version,
|
||||
&incoming_pdu,
|
||||
previous_create.clone(),
|
||||
|
@ -1543,8 +1543,9 @@ async fn upgrade_outlier_to_timeline_pdu(
|
|||
.and_then(|event_id| db.rooms.get_pdu(&event_id).ok().flatten())
|
||||
},
|
||||
)
|
||||
.map_err(|_e| "Auth check failed.".to_owned())?
|
||||
{
|
||||
.map_err(|_e| "Auth check failed.".to_owned())?;
|
||||
|
||||
if !check_result {
|
||||
return Err("Event has failed auth check with state at the event.".into());
|
||||
}
|
||||
debug!("Auth check succeeded.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue