@ -121,18 +121,17 @@ impl<'de> Deserialize<'de> for UpdaterEndpoint {
D: Deserializer<'de>,
D: Deserializer<'de>,
{
{
leturl=Url::deserialize(deserializer)?;
leturl=Url::deserialize(deserializer)?;
#[cfg(not(feature = "schema"))]
{
ifurl.scheme()!="https"{
ifurl.scheme()!="https"{
#[cfg(debug_assertions)]
#[cfg(debug_assertions)]
eprintln!("[\x1b[33mWARNING\x1b[0m] The configured updater endpoint doesn't use `https` protocol. This is allowed in development but will fail in release builds.");
eprintln!("[\x1b[33mWARNING\x1b[0m] The configured updater endpoint doesn't use `https` protocol. This is allowed in development but will fail in release builds.");
#[cfg(not(debug_assertions))]
#[cfg(not(debug_assertions))]
returnErr(serde::de::Error::custom(
returnErr(serde::de::Error::custom(
"The configured updater endpoint must use the `https` protocol.",
"The configured updater endpoint must use the `https` protocol.",