Skip to content

Commit

Permalink
📎 clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cdstanford committed Aug 23, 2024
1 parent e088c68 commit 86c91c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/download_crate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use regex::Regex;
use tar::Archive;

// Regexes to match crate names and versions
const CRATE_NAME_REGEX: &'static str = r"[a-zA-Z0-9_-]+";
const SEMVER_REGEX: &'static str = r"(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?";
const CRATE_NAME_REGEX: &str = r"[a-zA-Z0-9_-]+";
const SEMVER_REGEX: &str = r"(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?";

fn get_crates_io_url(package_name: &str, package_version: &str) -> String {
format!(
Expand Down

0 comments on commit 86c91c1

Please sign in to comment.