1
Fork 0

disregard what we believe is supported in cargo for hash type

This commit is contained in:
Jacob Kiesel 2024-09-28 17:38:28 -06:00
parent 6ff7a3e2aa
commit 081661b78d
2 changed files with 1 additions and 14 deletions

View file

@ -1400,15 +1400,6 @@ pub enum SourceFileHashAlgorithm {
Blake3,
}
impl SourceFileHashAlgorithm {
pub fn supported_in_cargo(&self) -> bool {
match self {
Self::Md5 | Self::Sha1 => false,
Self::Sha256 | Self::Blake3 => true,
}
}
}
impl Display for SourceFileHashAlgorithm {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(match self {