Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalvany committed Jan 30, 2024
1 parent dff995c commit 091e988
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/daitch_mokotoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,7 @@ impl Encoder for DaitchMokotoffSoundex {
/// # }
/// ```
fn encode(&self, s: &str) -> String {
self.inner_soundex(s, false)
.get(0)
self.inner_soundex(s, false).first()
.map(|v| v.to_string())
.unwrap_or_default()
}
Expand Down

0 comments on commit 091e988

Please sign in to comment.