File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
- use crate :: width:: WordBreak ;
2
1
use crate :: { trim_whitespace, Censor , Type } ;
3
2
4
3
use crate :: censor:: should_skip_censor;
@@ -140,7 +139,7 @@ impl ContextRateLimitOptions {
140
139
#[ cfg_attr( doc, doc( cfg( all( feature = "context" , feature = "width" ) ) ) ) ]
141
140
pub struct ContextWordBreakOptions {
142
141
/// The type of word-breaking used to display the text.
143
- pub word_break : WordBreak ,
142
+ pub word_break : crate :: width :: WordBreak ,
144
143
/// The maximum length of an unbreakable part (before the entire message is blocked).
145
144
pub limit : NonZeroUsize ,
146
145
}
@@ -149,7 +148,7 @@ pub struct ContextWordBreakOptions {
149
148
impl Default for ContextWordBreakOptions {
150
149
fn default ( ) -> Self {
151
150
Self {
152
- word_break : WordBreak :: BreakAll ,
151
+ word_break : crate :: width :: WordBreak :: BreakAll ,
153
152
limit : NonZeroUsize :: new ( 16 ) . unwrap ( ) ,
154
153
}
155
154
}
You can’t perform that action at this time.
0 commit comments