mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
rename RumaResponse to Ra
It's very commonly used so having a short name is worthwhile, I think.
This commit is contained in:
parent
230ebd3884
commit
7ea98dac72
38 changed files with 332 additions and 351 deletions
|
|
@ -2,7 +2,7 @@ use std::{collections::BTreeMap, iter::FromIterator};
|
|||
|
||||
use ruma::api::client::discovery::get_supported_versions;
|
||||
|
||||
use crate::{Result, Ruma, RumaResponse};
|
||||
use crate::{Ra, Result, Ruma};
|
||||
|
||||
/// # `GET /_matrix/client/versions`
|
||||
///
|
||||
|
|
@ -18,7 +18,7 @@ use crate::{Result, Ruma, RumaResponse};
|
|||
/// should avoid using unstable features in their stable releases
|
||||
pub(crate) async fn get_supported_versions_route(
|
||||
_body: Ruma<get_supported_versions::Request>,
|
||||
) -> Result<RumaResponse<get_supported_versions::Response>> {
|
||||
) -> Result<Ra<get_supported_versions::Response>> {
|
||||
let resp = get_supported_versions::Response {
|
||||
versions: vec![
|
||||
"r0.5.0".to_owned(),
|
||||
|
|
@ -35,5 +35,5 @@ pub(crate) async fn get_supported_versions_route(
|
|||
)]),
|
||||
};
|
||||
|
||||
Ok(RumaResponse(resp))
|
||||
Ok(Ra(resp))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue