Skip to content

Commit

Permalink
fix compiler error when search-non-english feature is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunshine40 committed Jun 5, 2024
1 parent a2ee372 commit e6771d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/html_handlebars/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ pub fn create_files(
utils::fs::write_file(destination, "elasticlunr.min.js", searcher::ELASTICLUNR_JS)?;
#[cfg(feature = "search-non-english")]
if extra_language_subtag.is_some() {
let language = language.expect("non-English index is only built when specified");
let language = potentially_supported_language.expect("non-English index is only built when specified");
utils::fs::write_file(
destination,
"lunr.stemmer.support.js",
Expand Down

0 comments on commit e6771d8

Please sign in to comment.