Skip to content

Commit ed4cf6f

Browse files
fbanadosbbqsrc
authored andcommitted
Address type change for Weight
Weights have been refactored into a newtype idiom. Change is required for compilation.
1 parent 8a6477a commit ed4cf6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Speller {
8585
let results = speller.suggest(&word);
8686
Ok(results
8787
.into_iter()
88-
.map(|x| (x.value.to_string(), x.weight))
88+
.map(|x| (x.value.to_string(), x.weight.0))
8989
.collect::<Vec<_>>())
9090
}
9191

0 commit comments

Comments
 (0)