Update db.rs

This commit is contained in:
House of Vanity
2021-12-08 17:51:32 +03:00
committed by GitHub
parent fdc52b7198
commit e5079fa584

View File

@ -35,6 +35,7 @@ pub(crate) fn update_scheme() -> Result<()> {
}
pub(crate) fn load_stopwords() -> Result<()> {
info!("Populating stop words wait please.");
let conn = open()?;
for table in include_str!("../assets/stop-words.txt").split('\n').into_iter() {
let word = table.trim();