Skip to content

Commit e7b1a08

Browse files
committed
Fixes before release part 4.
1 parent 630a83a commit e7b1a08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/context.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use crate::width::WordBreak;
21
use crate::{trim_whitespace, Censor, Type};
32

43
use crate::censor::should_skip_censor;
@@ -140,7 +139,7 @@ impl ContextRateLimitOptions {
140139
#[cfg_attr(doc, doc(cfg(all(feature = "context", feature = "width"))))]
141140
pub 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 {
149148
impl 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
}

0 commit comments

Comments
 (0)