rename RumaResponse to Ra

It's very commonly used so having a short name is worthwhile, I think.
This commit is contained in:
Charles Hall 2024-05-18 18:59:46 -07:00
parent 230ebd3884
commit 7ea98dac72
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
38 changed files with 332 additions and 351 deletions

View file

@ -24,7 +24,7 @@ use ruma::{
use serde::Deserialize;
use tracing::{debug, error, warn};
use super::{Ruma, RumaResponse};
use super::{Ra, Ruma};
use crate::{service::appservice::RegistrationInfo, services, Error, Result};
enum Token {
@ -450,7 +450,7 @@ impl Credentials for XMatrix {
}
}
impl<T: OutgoingResponse> IntoResponse for RumaResponse<T> {
impl<T: OutgoingResponse> IntoResponse for Ra<T> {
fn into_response(self) -> Response {
match self.0.try_into_http_response::<BytesMut>() {
Ok(res) => res.map(BytesMut::freeze).map(Full::new).into_response(),