Fix deps, download URLs, remove duplicate deps (#310)

This commit is contained in:
Geometrically authored and GitHub committed 2022-02-26 21:16:11 -07:00
1 parent b7c7c0e862
commit 725f8571bb
14 files changed
+147 -124

No files matched your search

+2 -1
View File
@@ -37,7 +37,8 @@ pub enum SupportedGameVersions {
All,
PastDate(DateTime<Utc>),
Range(DateTime<Utc>, DateTime<Utc>),
#[allow(dead_code)] Custom(Vec<GameVersion>),
#[allow(dead_code)]
Custom(Vec<GameVersion>),
}
pub trait Validator: Sync {
+1 -1
View File
@@ -33,7 +33,7 @@ pub struct PackFile<'a> {
pub downloads: Vec<&'a str>,
}
fn validate_download_url(values: &Vec<&str>) -> Result<(), validator::ValidationError> {
fn validate_download_url(values: &[&str]) -> Result<(), validator::ValidationError> {
for value in values {
let url = url::Url::parse(value)
.ok()