Use the rexported crossterm from ratatui

This commit is contained in:
mo8it
2024-07-25 16:26:48 +02:00
parent 8beb290842
commit 1937b4bf66
10 changed files with 38 additions and 37 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ const PROGRESS_EXCEEDS_MAX_ERR: &str =
/// Terminal progress bar to be used when not using Ratataui.
pub fn progress_bar(progress: u16, total: u16, line_width: u16) -> Result<String> {
use crossterm::style::Stylize;
use ratatui::crossterm::style::Stylize;
if progress > total {
bail!(PROGRESS_EXCEEDS_MAX_ERR);