Skip to content

Commit

Permalink
replace unwrap with expect in core/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
AnActualEmerald committed Sep 18, 2024
1 parent 26b854c commit ceb8176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ fn get_submods(manifest: &Manifest, dir: impl AsRef<Path>) -> Option<Vec<Install
}

pub static RE: LazyLock<Regex> =
LazyLock::new(|| Regex::new(r"^(\w+)-(\w+)-(\d+\.\d+\.\d+)$").unwrap());
LazyLock::new(|| Regex::new(r"^(\w+)-(\w+)-(\d+\.\d+\.\d+)$").expect("regex"));

/// Returns the parts of a `author-name-X.Y.Z` string in (`author`, `name`, `version`) order
///
Expand Down

0 comments on commit ceb8176

Please sign in to comment.