Fix items-after-statements
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
2ab427fe99
commit
68cbf19154
6 changed files with 14 additions and 13 deletions
|
@ -14,6 +14,8 @@ pub(crate) async fn send_request<T>(registration: Registration, request: T) -> R
|
|||
where
|
||||
T: OutgoingRequest + Debug,
|
||||
{
|
||||
const VERSIONS: [MatrixVersion; 1] = [MatrixVersion::V1_0];
|
||||
|
||||
let Some(dest) = registration.url else {
|
||||
return Ok(None);
|
||||
};
|
||||
|
@ -21,9 +23,6 @@ where
|
|||
trace!("Appservice URL \"{dest}\", Appservice ID: {}", registration.id);
|
||||
|
||||
let hs_token = registration.hs_token.as_str();
|
||||
|
||||
const VERSIONS: [MatrixVersion; 1] = [MatrixVersion::V1_0];
|
||||
|
||||
let mut http_request = request
|
||||
.try_into_http_request::<BytesMut>(&dest, SendAccessToken::IfRequired(hs_token), &VERSIONS)
|
||||
.map_err(|e| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue