File tree 1 file changed +2
-5
lines changed
crates/uv/src/commands/project
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1563,9 +1563,7 @@ fn read_recursion_depth_from_environment_variable() -> anyhow::Result<u32> {
1563
1563
fn is_python_executable ( executable_command : & str ) -> bool {
1564
1564
executable_command
1565
1565
. strip_prefix ( "python" )
1566
- . is_some_and ( |version| {
1567
- version. is_empty ( ) || is_valid_python_version ( version)
1568
- } )
1566
+ . is_some_and ( |version| version. is_empty ( ) || is_valid_python_version ( version) )
1569
1567
}
1570
1568
1571
1569
/// Checks if a version string is a valid Python major.minor.patch version.
@@ -1592,8 +1590,7 @@ mod tests {
1592
1590
for & case in cases {
1593
1591
let result = func ( case) ;
1594
1592
assert_eq ! (
1595
- result,
1596
- expected_result,
1593
+ result, expected_result,
1597
1594
"{test_name}: Expected `{expected_result}`, but got `{result}` for case `{case}`"
1598
1595
) ;
1599
1596
}
You can’t perform that action at this time.
0 commit comments