Closed eagleflo closed 3 years ago
There's a fair bit of duplicated logic depending on which dictionary is being consulted in https://github.com/eagleflo/jisho/blob/425b4093c20ddf97fd2ebf0463ceba95b4899cb6/src/lib.rs#L52-L76
By clearly setting up keb, reb and gloss it should be possible to cut that down in half.
keb
reb
gloss
There's a fair bit of duplicated logic depending on which dictionary is being consulted in https://github.com/eagleflo/jisho/blob/425b4093c20ddf97fd2ebf0463ceba95b4899cb6/src/lib.rs#L52-L76
By clearly setting up
keb
,reb
andgloss
it should be possible to cut that down in half.