@ -121,8 +121,7 @@ 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.");
@ -132,7 +131,7 @@ impl<'de> Deserialize<'de> for UpdaterEndpoint {
"The configured updater endpoint must use the `https` protocol.",
"The configured updater endpoint must use the `https` protocol.",