From 7c702a5b0107cc7393bf4c3df4a0a0b008e2ed6c Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Wed, 13 Mar 2024 00:50:26 -0700 Subject: [PATCH] Update yansi to 1.0.1. --- contrib/db_pools/lib/src/database.rs | 2 +- contrib/sync_db_pools/lib/src/connection.rs | 4 ++-- core/lib/Cargo.toml | 2 +- core/lib/src/request/request.rs | 2 +- examples/tls/Cargo.toml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/db_pools/lib/src/database.rs b/contrib/db_pools/lib/src/database.rs index b8179be0..6eabdd72 100644 --- a/contrib/db_pools/lib/src/database.rs +++ b/contrib/db_pools/lib/src/database.rs @@ -125,7 +125,7 @@ pub trait Database: From + DerefMut + Send + Sy let dbtype = std::any::type_name::().bold().primary(); error!("Attempted to fetch unattached database `{}`.", dbtype); info_!("`{}{}` fairing must be attached prior to using this database.", - dbtype.linger(), "::init()".clear()); + dbtype.linger(), "::init()".resetting()); None } } diff --git a/contrib/sync_db_pools/lib/src/connection.rs b/contrib/sync_db_pools/lib/src/connection.rs index 73c6913b..0d4ac19f 100644 --- a/contrib/sync_db_pools/lib/src/connection.rs +++ b/contrib/sync_db_pools/lib/src/connection.rs @@ -226,10 +226,10 @@ impl Sentinel for Connection { if rocket.state::>().is_none() { let conn = std::any::type_name::().primary().bold(); error!("requesting `{}` DB connection without attaching `{}{}`.", - conn, conn.linger(), "::fairing()".clear()); + conn, conn.linger(), "::fairing()".resetting()); info_!("Attach `{}{}` to use database connection pooling.", - conn.linger(), "::fairing()".clear()); + conn.linger(), "::fairing()".resetting()); return true; } diff --git a/core/lib/Cargo.toml b/core/lib/Cargo.toml index 6e2378cd..cc38bb1b 100644 --- a/core/lib/Cargo.toml +++ b/core/lib/Cargo.toml @@ -50,7 +50,7 @@ bytes = "1.4" hyper = { version = "1.1", default-features = false, features = ["http1", "server"] } # Non-optional, core dependencies from here on out. -yansi = { version = "1.0.0-rc", features = ["detect-tty"] } +yansi = { version = "1.0.1", features = ["detect-tty"] } log = { version = "0.4", features = ["std"] } num_cpus = "1.0" time = { version = "0.3", features = ["macros", "parsing"] } diff --git a/core/lib/src/request/request.rs b/core/lib/src/request/request.rs index a02dff3a..5ff7e4b7 100644 --- a/core/lib/src/request/request.rs +++ b/core/lib/src/request/request.rs @@ -1195,7 +1195,7 @@ impl fmt::Display for Request<'_> { // Print the requests media type when the route specifies a format. if let Some(mime) = self.format() { if !mime.is_any() { - write!(f, " {}/{}", mime.top().yellow().linger(), mime.sub().clear())?; + write!(f, " {}/{}", mime.top().yellow().linger(), mime.sub().resetting())?; } } diff --git a/examples/tls/Cargo.toml b/examples/tls/Cargo.toml index 9c724939..b37758ff 100644 --- a/examples/tls/Cargo.toml +++ b/examples/tls/Cargo.toml @@ -7,4 +7,4 @@ publish = false [dependencies] rocket = { path = "../../core/lib", features = ["tls", "mtls", "secrets"] } -yansi = "1.0.0-rc.1" +yansi = "1.0.1"