Skip to content

Commit

Permalink
drop unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
orsinium committed Sep 11, 2024
1 parent 3c19dde commit afdf1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn main() {
"length" => textdistance::str::length(s1, s2) as f64,
"smith_waterman" => textdistance::str::smith_waterman(s1, s2) as f64,
#[cfg(feature = "std")]
"entropy_ncd" => textdistance::str::entropy_ncd(s1, s2) as f64,
"entropy_ncd" => textdistance::str::entropy_ncd(s1, s2),
#[cfg(feature = "std")]
"roberts" => textdistance::str::roberts(s1, s2),
_ => panic!("unknown algorithm name"),
Expand Down

0 comments on commit afdf1e8

Please sign in to comment.