Mark ClientId::new as deprecated

This commit is contained in:
Alexis Mousset
2020-08-27 19:21:57 +02:00
committed by Paolo Barbolini
parent 98f09117f7
commit 36aab20086

View File

@@ -57,6 +57,12 @@ impl Display for ClientId {
}
impl ClientId {
#[deprecated(since = "0.10.0", note = "Please use the new_domain function instead")]
/// Creates a new `ClientId` from a fully qualified domain name
pub fn new(domain: String) -> Self {
Self::Domain(domain)
}
/// Creates a new `ClientId` from a fully qualified domain name
pub fn new_domain(domain: String) -> Self {
Self::Domain(domain)