From 0b4d2b413dd4fca873dc54cf1ce531b302ff8b89 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 14 Nov 2022 21:09:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=85=20Incorpora=20ResultExt=20para=20c?= =?UTF-8?q?aptura/traza=20de=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagetop/src/db.rs | 3 +-- pagetop/src/lib.rs | 1 + pagetop/src/prelude.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pagetop/src/db.rs b/pagetop/src/db.rs index c7aeb879..fee92181 100644 --- a/pagetop/src/db.rs +++ b/pagetop/src/db.rs @@ -1,11 +1,10 @@ -use crate::{config, run_now, trace, LazyStatic}; +use crate::{config, run_now, trace, LazyStatic, ResultExt}; pub use url::Url as DbUri; pub use sea_orm::{DatabaseConnection as DbConn, ExecResult, QueryResult}; use sea_orm::{ConnectOptions, ConnectionTrait, Database, DatabaseBackend, Statement}; -use tracing_unwrap::ResultExt; pub(crate) static DBCONN: LazyStatic = LazyStatic::new(|| { trace::info!( diff --git a/pagetop/src/lib.rs b/pagetop/src/lib.rs index 0a84639a..fb92a186 100644 --- a/pagetop/src/lib.rs +++ b/pagetop/src/lib.rs @@ -42,6 +42,7 @@ pub use concat_string::concat_string; pub use doc_comment::doc_comment; pub use once_cell::sync::Lazy as LazyStatic; +pub use tracing_unwrap::ResultExt; // LOCAL. diff --git a/pagetop/src/prelude.rs b/pagetop/src/prelude.rs index 79be1bab..1c976151 100644 --- a/pagetop/src/prelude.rs +++ b/pagetop/src/prelude.rs @@ -1,5 +1,5 @@ // Re-exports. -pub use crate::{concat_string, LazyStatic}; +pub use crate::{concat_string, LazyStatic, ResultExt}; // Macros. pub use crate::{args, configure_service_for_static_files, pub_config, pub_handle, pub_locale};