mirror of https://github.com/rwf2/Rocket.git
Update yansi to 1.0.1.
This commit is contained in:
parent
3927c931b2
commit
7c702a5b01
|
@ -125,7 +125,7 @@ pub trait Database: From<Self::Pool> + DerefMut<Target = Self::Pool> + Send + Sy
|
|||
let dbtype = std::any::type_name::<Self>().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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -226,10 +226,10 @@ impl<K: 'static, C: Poolable> Sentinel for Connection<K, C> {
|
|||
if rocket.state::<ConnectionPool<K, C>>().is_none() {
|
||||
let conn = std::any::type_name::<K>().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;
|
||||
}
|
||||
|
|
|
@ -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"] }
|
||||
|
|
|
@ -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())?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue