Skip to content

Commit

Permalink
fix(clippy): fixed some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stvnksslr committed Jan 1, 2025
1 parent 4ce7c29 commit 98a4d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/migrators/pipenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ impl PipenvMigrationSource {
// Keep == intact, only clean single =
if version.starts_with("==") {
version.to_string()
} else if version.starts_with('=') {
version[1..].trim().to_string()
} else if let Some(stripped) = version.strip_prefix('=') {
stripped.trim().to_string()
} else {
version.to_string()
}
Expand Down

0 comments on commit 98a4d85

Please sign in to comment.