@@ -668,10 +668,7 @@ const GLOBAL_EXTENSIONS: &[&str] = &[
668
668
// We didn't build ctypes_test until 3.9.
669
669
// We didn't build some test extensions until 3.9.
670
670
671
- const GLOBAL_EXTENSIONS_PYTHON_3_8 : & [ & str ] = & [
672
- "_sha256" ,
673
- "_sha512" ,
674
- "parser" ] ;
671
+ const GLOBAL_EXTENSIONS_PYTHON_3_8 : & [ & str ] = & [ "_sha256" , "_sha512" , "parser" ] ;
675
672
676
673
const GLOBAL_EXTENSIONS_PYTHON_3_9 : & [ & str ] = & [
677
674
"_peg_parser" ,
@@ -686,7 +683,10 @@ const GLOBAL_EXTENSIONS_PYTHON_3_9: &[&str] = &[
686
683
const GLOBAL_EXTENSIONS_PYTHON_3_10 : & [ & str ] = & [
687
684
"_sha256" ,
688
685
"_sha512" ,
689
- "_uuid" , "_xxsubinterpreters" , "_zoneinfo" ] ;
686
+ "_uuid" ,
687
+ "_xxsubinterpreters" ,
688
+ "_zoneinfo" ,
689
+ ] ;
690
690
691
691
const GLOBAL_EXTENSIONS_PYTHON_3_11 : & [ & str ] = & [
692
692
"_sha256" ,
@@ -1499,7 +1499,6 @@ fn validate_extension_modules(
1499
1499
wanted. insert ( "_uuid" ) ;
1500
1500
}
1501
1501
1502
-
1503
1502
// _wmi is Windows only on 3.12+.
1504
1503
if python_major_minor == "3.12" && is_windows {
1505
1504
wanted. insert ( "_wmi" ) ;
@@ -1542,10 +1541,9 @@ fn validate_json(json: &PythonJsonMain, triple: &str, is_debug: bool) -> Result<
1542
1541
}
1543
1542
}
1544
1543
1545
- let wanted_platform_tag = PLATFORM_TAG_BY_TRIPLE
1544
+ let wanted_platform_tag = * PLATFORM_TAG_BY_TRIPLE
1546
1545
. get ( triple)
1547
- . ok_or_else ( || anyhow ! ( "platform tag not defined for triple {}" , triple) ) ?
1548
- . clone ( ) ;
1546
+ . ok_or_else ( || anyhow ! ( "platform tag not defined for triple {}" , triple) ) ?;
1549
1547
1550
1548
if json. python_platform_tag != wanted_platform_tag {
1551
1549
errors. push ( format ! (
0 commit comments