mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-21 17:11:05 +00:00
Allow versions to be unused
This commit is contained in:
parent
4fa7674a35
commit
a465d1ae5b
1 changed files with 3 additions and 3 deletions
|
@ -156,7 +156,7 @@ struct Link {
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
enum MaybeSupported<T> {
|
enum MaybeSupported<T> {
|
||||||
Supported(T),
|
Supported(T),
|
||||||
Unsupported(String),
|
Unsupported(#[allow(unused)] String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> MaybeSupported<T> {
|
impl<T> MaybeSupported<T> {
|
||||||
|
@ -165,8 +165,8 @@ impl<T> MaybeSupported<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SupportedVersion(String);
|
struct SupportedVersion(#[allow(unused)] String);
|
||||||
struct SupportedNodeinfo(String);
|
struct SupportedNodeinfo(#[allow(unused)] String);
|
||||||
|
|
||||||
static SUPPORTED_VERSIONS: &str = "2.";
|
static SUPPORTED_VERSIONS: &str = "2.";
|
||||||
static SUPPORTED_NODEINFO: &str = "http://nodeinfo.diaspora.software/ns/schema/2.";
|
static SUPPORTED_NODEINFO: &str = "http://nodeinfo.diaspora.software/ns/schema/2.";
|
||||||
|
|
Loading…
Reference in a new issue