Closed Diegovsky closed 2 years ago
Also, just a suggestion: since you grabbed a some functions from fuzzywuzzy, you should consider outright depending on it as rustc is smart enough to remove functions not in use.
Ah, that totally crossed my mind when I was doing that. I'll consider doing that soon then.
PR looks good also.
Thank you so much!
Error
Explanation
This happens because of "raw" string indexing in
src/launcher/result.rs:40
(74d8e30):Since string in rust are internally UTF-8 encoded, it's fine to index them in ascii-only environments, however it panics if the index is in a unicode char boundry.
Fix
I exported
fuzzy::utils::slice_utf8
since it's already there and it worked great :)Also, just a suggestion: since you grabbed a some functions from
fuzzywuzzy
, you should consider outright depending on it as rustc is smart enough to remove functions not in use.