Add missing imports and address warnings.
This commit is contained in:
parent
c310cd1395
commit
29cbb4c0c7
@ -45,7 +45,7 @@ pub mod register {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ pub mod request_password_change_token {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ pub mod deactivate {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ pub mod change_password {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ pub mod request_register_token {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
//! Endpoints for room aliases.
|
//! Endpoints for room aliases.
|
||||||
|
|
||||||
use ruma_identifiers::RoomAlias;
|
use ruma_identifiers::RoomAliasId;
|
||||||
|
|
||||||
/// PUT /_matrix/client/r0/directory/room/:room_alias
|
/// PUT /_matrix/client/r0/directory/room/:room_alias
|
||||||
pub mod create {
|
pub mod create {
|
||||||
@ -37,8 +37,6 @@ pub mod create {
|
|||||||
|
|
||||||
/// DELETE /_matrix/client/r0/directory/room/:room_alias
|
/// DELETE /_matrix/client/r0/directory/room/:room_alias
|
||||||
pub mod delete {
|
pub mod delete {
|
||||||
use ruma_identifiers::RoomId;
|
|
||||||
|
|
||||||
/// Details about this API endpoint.
|
/// Details about this API endpoint.
|
||||||
pub struct Endpoint;
|
pub struct Endpoint;
|
||||||
|
|
||||||
@ -98,5 +96,5 @@ pub mod get {
|
|||||||
|
|
||||||
/// These API endpoints' path parameters.
|
/// These API endpoints' path parameters.
|
||||||
pub struct PathParams {
|
pub struct PathParams {
|
||||||
pub room_alias: RoomAlias,
|
pub room_alias: RoomAliasId,
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,8 @@ pub mod set_room_account_data {
|
|||||||
|
|
||||||
/// PUT /_matrix/client/r0/user/:user_id/account_data/:type
|
/// PUT /_matrix/client/r0/user/:user_id/account_data/:type
|
||||||
pub mod set_global_account_data {
|
pub mod set_global_account_data {
|
||||||
|
use ruma_identifiers::UserId;
|
||||||
|
|
||||||
/// Details about this API endpoint.
|
/// Details about this API endpoint.
|
||||||
pub struct Endpoint;
|
pub struct Endpoint;
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ pub mod create_room {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ pub mod login {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ pub mod logout {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ pub mod refresh_access_token {
|
|||||||
::Method::Post
|
::Method::Post
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ impl ::Endpoint for Endpoint {
|
|||||||
::Method::Get
|
::Method::Get
|
||||||
}
|
}
|
||||||
|
|
||||||
fn request_path(params: Self::PathParams) -> String {
|
fn request_path(_params: Self::PathParams) -> String {
|
||||||
Self::router_path()
|
Self::router_path()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user