From aadc795e62e7788b1e64b348f85565ec9a618df8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 23:58:15 +0100 Subject: [PATCH] chore(deps): bump tui-big-text from 0.4.5 to 0.5.2 (#60) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [tui-big-text](https://github.com/joshka/tui-widgets) from 0.4.5 to 0.5.2.
Release notes

Sourced from tui-big-text's releases.

tui-big-text-v0.5.2

⚙️ Miscellaneous Tasks

tui-big-text-v0.5.1

⚙️ Miscellaneous Tasks

tui-big-text-v0.5.0

🚀 Features

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tui-big-text&package-manager=cargo&previous-version=0.4.5&new-version=0.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- src/components/header.rs | 11 ++--------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 27e51d3..aac4921 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2450,9 +2450,9 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tui-big-text" -version = "0.4.5" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc9699f14558a8b6abaae5cb5691033379a4b86f6b26555f8168ec5c6b4029e3" +checksum = "849b1feb95246e1e36d47cafe64c8453efbf4989d728b4a9232e39023dab1b98" dependencies = [ "derive_builder", "font8x8", diff --git a/Cargo.toml b/Cargo.toml index 7935494..f9ab884 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ tokio = { version = "1.39.2", features = [ tracing = "0.1.40" tracing-error = "0.2.0" tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } -tui-big-text = "0.4.5" +tui-big-text = "0.5.2" ureq = { version = "2.10.0", features = ["json"] } diff --git a/src/components/header.rs b/src/components/header.rs index 438fc8f..0771056 100644 --- a/src/components/header.rs +++ b/src/components/header.rs @@ -22,19 +22,12 @@ impl Header { impl Component for Header { fn draw(&mut self, f: &mut Frame<'_>, area: Rect) { - let big_text = match BigText::builder() + let big_text = BigText::builder() .pixel_size(PixelSize::HalfHeight) .style(Style::default().fg(self.config.theme.title())) .lines(vec!["Ducker".into()]) .alignment(layout::Alignment::Center) - .build() - { - Ok(b) => b, - _ => { - tracing::error!("failed to build title text"); - panic!("Failed to build title text; panicking...") - } - }; + .build(); let area = area.inner(Margin { vertical: 0,