From d2004b5a9eb8e90d29892f6eaf7593c78a7e2043 Mon Sep 17 00:00:00 2001 From: Jasper Hugo Date: Thu, 19 May 2022 09:05:10 +0700 Subject: [PATCH] Allow non-HTTPS Git URLs for the advisory database --- src/advisories/cfg.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/advisories/cfg.rs b/src/advisories/cfg.rs index f10dc25f..1a3b1552 100644 --- a/src/advisories/cfg.rs +++ b/src/advisories/cfg.rs @@ -130,14 +130,6 @@ impl crate::cfg::UnvalidatedConfig for Config { .with_labels(vec![Label::secondary(cfg_file, url.span.clone())]), ); } - - if url.value.scheme() != "https" { - diags.push( - Diagnostic::error() - .with_message("advisory database url is not https") - .with_labels(vec![Label::secondary(cfg_file, url.span.clone())]), - ); - } } ValidConfig {