Remove dependency on the url crate

This commit is contained in:
Jonas Platte 2020-05-05 00:16:43 +02:00
parent 1ca24515ad
commit ae8a629823
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 2 additions and 4 deletions

View File

@ -23,4 +23,3 @@ ruma-serde = "0.1.3"
serde = { version = "1.0.106", features = ["derive"] }
serde_json = "1.0.52"
strum = { version = "0.18.0", features = ["derive"] }
url = { version = "2.1.1", features = ["serde"] }

View File

@ -2,7 +2,6 @@
use ruma_api::ruma_api;
use serde::{Deserialize, Serialize};
use url::Url;
ruma_api! {
metadata {
@ -33,12 +32,12 @@ ruma_api! {
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, PartialOrd, Serialize)]
pub struct HomeserverInfo {
/// The base URL for the homeserver for client-server connections.
pub base_url: Url,
pub base_url: String,
}
/// Information about a discovered identity server.
#[derive(Clone, Debug, Deserialize, Hash, PartialEq, PartialOrd, Serialize)]
pub struct IdentityServerInfo {
/// The base URL for the identity server for client-server connections.
pub base_url: Url,
pub base_url: String,
}