File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- use crate :: width:: WordBreak ;
21use crate :: { trim_whitespace, Censor , Type } ;
32
43use crate :: censor:: should_skip_censor;
@@ -140,7 +139,7 @@ impl ContextRateLimitOptions {
140139#[ cfg_attr( doc, doc( cfg( all( feature = "context" , feature = "width" ) ) ) ) ]
141140pub struct ContextWordBreakOptions {
142141 /// The type of word-breaking used to display the text.
143- pub word_break : WordBreak ,
142+ pub word_break : crate :: width :: WordBreak ,
144143 /// The maximum length of an unbreakable part (before the entire message is blocked).
145144 pub limit : NonZeroUsize ,
146145}
@@ -149,7 +148,7 @@ pub struct ContextWordBreakOptions {
149148impl Default for ContextWordBreakOptions {
150149 fn default ( ) -> Self {
151150 Self {
152- word_break : WordBreak :: BreakAll ,
151+ word_break : crate :: width :: WordBreak :: BreakAll ,
153152 limit : NonZeroUsize :: new ( 16 ) . unwrap ( ) ,
154153 }
155154 }
You can’t perform that action at this time.
0 commit comments