Add missing imports and address warnings.

This commit is contained in:
Jimmy Cuadra 2016-10-01 01:04:00 -07:00
parent c310cd1395
commit 29cbb4c0c7
6 changed files with 14 additions and 14 deletions

View File

@ -45,7 +45,7 @@ pub mod register {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}
@ -70,7 +70,7 @@ pub mod request_password_change_token {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}
@ -95,7 +95,7 @@ pub mod deactivate {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}
@ -126,7 +126,7 @@ pub mod change_password {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}
@ -160,7 +160,7 @@ pub mod request_register_token {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}

View File

@ -1,6 +1,6 @@
//! Endpoints for room aliases.
use ruma_identifiers::RoomAlias;
use ruma_identifiers::RoomAliasId;
/// PUT /_matrix/client/r0/directory/room/:room_alias
pub mod create {
@ -37,8 +37,6 @@ pub mod create {
/// DELETE /_matrix/client/r0/directory/room/:room_alias
pub mod delete {
use ruma_identifiers::RoomId;
/// Details about this API endpoint.
pub struct Endpoint;
@ -98,5 +96,5 @@ pub mod get {
/// These API endpoints' path parameters.
pub struct PathParams {
pub room_alias: RoomAlias,
pub room_alias: RoomAliasId,
}

View File

@ -42,6 +42,8 @@ pub mod set_room_account_data {
/// PUT /_matrix/client/r0/user/:user_id/account_data/:type
pub mod set_global_account_data {
use ruma_identifiers::UserId;
/// Details about this API endpoint.
pub struct Endpoint;

View File

@ -56,7 +56,7 @@ pub mod create_room {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}

View File

@ -24,7 +24,7 @@ pub mod login {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}
@ -49,7 +49,7 @@ pub mod logout {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}
@ -87,7 +87,7 @@ pub mod refresh_access_token {
::Method::Post
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}

View File

@ -18,7 +18,7 @@ impl ::Endpoint for Endpoint {
::Method::Get
}
fn request_path(params: Self::PathParams) -> String {
fn request_path(_params: Self::PathParams) -> String {
Self::router_path()
}