Skip to content

Commit

Permalink
fix: Expose deadpool_postgres and cornucopia_async::GenericClient in …
Browse files Browse the repository at this point in the history
…samling API
  • Loading branch information
jacobsvante committed Jan 5, 2025
1 parent 41e0e06 commit 808da8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/exports/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct Export<'a> {
cell_separator: &'a str,
}

impl<'a> Export<'a> {
impl Export<'_> {
fn filename(&self) -> String {
format!(
"{} {}{}",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ where
fields: &'a mut Option<&'static [&'static str]>,
}

impl<'de, 'a> Deserializer<'de> for StructFieldsDeserializer<'a> {
impl<'de> Deserializer<'de> for StructFieldsDeserializer<'_> {
type Error = serde::de::value::Error;

fn deserialize_any<V>(self, _visitor: V) -> std::result::Result<V::Value, Self::Error>
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pub use categories::*;
pub use cloudflare::*;
pub use collections::*;
pub use colors::*;
pub use cornucopia_async::GenericClient;
pub use db_migrations::*;
pub use entities::*;
pub use entity_ref::*;
Expand All @@ -54,3 +55,7 @@ pub use styles::*;
mod ui;

pub use errors::*;

pub mod deadpool_postgres {
pub use deadpool_postgres::*;
}

0 comments on commit 808da8e

Please sign in to comment.