Skip to content

Commit

Permalink
Fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Jul 12, 2024
1 parent 85f8614 commit 1dfd0a5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions uniffi_bindgen/src/bindings/kotlin/gen_kotlin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ impl Config {
self.kotlin_target_version
.clone()
.map(|v| {
Version::parse(&v).expect(&format!(
"Provided Kotlin target version is not valid: {}",
v
))
Version::parse(&v).unwrap_or_else(|_| {
panic!("Provided Kotlin target version is not valid: {}", v)
})
})
.unwrap_or(Version::new(0, 0, 0))
}
Expand Down

0 comments on commit 1dfd0a5

Please sign in to comment.