File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -1295,11 +1295,7 @@ mod parse {
1295
1295
) -> bool {
1296
1296
match v. and_then ( |s| SourceFileHashAlgorithm :: from_str ( s) . ok ( ) ) {
1297
1297
Some ( hash_kind) => {
1298
- if hash_kind. supported_in_cargo ( ) {
1299
- * slot = Some ( hash_kind) ;
1300
- } else {
1301
- return false ;
1302
- }
1298
+ * slot = Some ( hash_kind) ;
1303
1299
}
1304
1300
_ => return false ,
1305
1301
}
Original file line number Diff line number Diff line change @@ -1400,15 +1400,6 @@ pub enum SourceFileHashAlgorithm {
1400
1400
Blake3 ,
1401
1401
}
1402
1402
1403
- impl SourceFileHashAlgorithm {
1404
- pub fn supported_in_cargo ( & self ) -> bool {
1405
- match self {
1406
- Self :: Md5 | Self :: Sha1 => false ,
1407
- Self :: Sha256 | Self :: Blake3 => true ,
1408
- }
1409
- }
1410
- }
1411
-
1412
1403
impl Display for SourceFileHashAlgorithm {
1413
1404
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1414
1405
f. write_str ( match self {
You can’t perform that action at this time.
0 commit comments