Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 28, 2023
1 parent 656edc4 commit cd81d62
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions crates/tabby-inference/src/decoding.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


use dashmap::DashMap;
use regex::Regex;
use tabby_common::languages::Language;
Expand Down Expand Up @@ -53,11 +51,7 @@ impl StopConditionFactory {
}
}

pub fn trim_stop_words(
&self,
language: &'static Language,
text: &str,
) -> Option<String> {
pub fn trim_stop_words(&self, language: &'static Language, text: &str) -> Option<String> {
let Some(re) = self.get_re(language) else {
return None;
};
Expand Down

0 comments on commit cd81d62

Please sign in to comment.