Skip to content

Commit

Permalink
Fixes before release part 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
finnbear committed Sep 24, 2024
1 parent 630a83a commit e7b1a08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/context.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::width::WordBreak;
use crate::{trim_whitespace, Censor, Type};

use crate::censor::should_skip_censor;
Expand Down Expand Up @@ -140,7 +139,7 @@ impl ContextRateLimitOptions {
#[cfg_attr(doc, doc(cfg(all(feature = "context", feature = "width"))))]
pub struct ContextWordBreakOptions {
/// The type of word-breaking used to display the text.
pub word_break: WordBreak,
pub word_break: crate::width::WordBreak,
/// The maximum length of an unbreakable part (before the entire message is blocked).
pub limit: NonZeroUsize,
}
Expand All @@ -149,7 +148,7 @@ pub struct ContextWordBreakOptions {
impl Default for ContextWordBreakOptions {
fn default() -> Self {
Self {
word_break: WordBreak::BreakAll,
word_break: crate::width::WordBreak::BreakAll,
limit: NonZeroUsize::new(16).unwrap(),
}
}
Expand Down

0 comments on commit e7b1a08

Please sign in to comment.