From edfdcb525ee30fc54747460ada621f13f0ed1996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Wed, 26 Jun 2024 18:34:30 +0200 Subject: [PATCH] fix(handlers): Disable textwrap::smawk feature (#379) --- Cargo.toml | 2 +- src/handlers/graphical.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 057bd9e..01b3a71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ unicode-width = "0.1.11" cfg-if = "1.0.0" owo-colors = { version = "4.0.0", optional = true } -textwrap = { version = "0.16.0", optional = true } +textwrap = { version = "0.16.0", default-features = false, features = ["unicode-linebreak", "unicode-width"], optional = true } supports-hyperlinks = { version = "3.0.0", optional = true } supports-color = { version = "3.0.0", optional = true } supports-unicode = { version = "3.0.0", optional = true } diff --git a/src/handlers/graphical.rs b/src/handlers/graphical.rs index df1ede8..714e576 100644 --- a/src/handlers/graphical.rs +++ b/src/handlers/graphical.rs @@ -159,7 +159,7 @@ impl GraphicalReportHandler { self } - /// Sets the word splitter to usewhen wrapping. + /// Sets the word splitter to use when wrapping. pub fn with_word_splitter(mut self, word_splitter: textwrap::WordSplitter) -> Self { self.word_splitter = Some(word_splitter); self