Skip to content

Commit 9f31ebc

Browse files
committed
Fix lint errors
1 parent cb88b5f commit 9f31ebc

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

src/utils.rs

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ pub fn is_python_311_or_greater(version: &str) -> Result<bool> {
1010
}
1111
}
1212

13-
pub fn is_python_312_or_greater(version: &str) -> Result<bool> {
14-
let version_parts = split_version(version)?;
15-
16-
if version_parts.1 >= 12 {
17-
Ok(true)
18-
} else {
19-
Ok(false)
20-
}
21-
}
22-
2313
#[cfg(feature = "fastapi")]
2414
pub fn is_allowed_fastapi_python_version(version: &str) -> Result<bool> {
2515
let version_parts = split_version(version)?;
@@ -48,23 +38,11 @@ mod tests {
4838
use super::*;
4939

5040
#[test]
51-
fn test_python_312_312() {
52-
let result = is_python_312_or_greater("3.12").unwrap();
41+
fn test_python_312() {
42+
let result = is_python_311_or_greater("3.12").unwrap();
5343
assert!(result);
5444
}
5545

56-
#[test]
57-
fn test_python_312_313() {
58-
let result = is_python_312_or_greater("3.13").unwrap();
59-
assert!(result);
60-
}
61-
62-
#[test]
63-
fn test_python_312_311() {
64-
let result = is_python_312_or_greater("3.11").unwrap();
65-
assert!(!result);
66-
}
67-
6846
#[test]
6947
fn test_python_311_311() {
7048
let result = is_python_311_or_greater("3.11").unwrap();

0 commit comments

Comments
 (0)