Skip to content

Commit

Permalink
chore: export the error
Browse files Browse the repository at this point in the history
  • Loading branch information
roberts-pumpurs committed Sep 24, 2024
1 parent a3671ff commit fa51bfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion crates/supabase-client/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ use supabase_auth::SUPABASE_KEY;
use tracing::Span;
pub use unauthenticated::SupabaseClient;

use crate::{error, SupabaseClientError};
use crate::error;
use crate::error::SupabaseClientError;

pub trait SupabaseClientExt {
fn client(&mut self) -> impl Future<Output = reqwest::Client> + Send;
Expand Down
2 changes: 1 addition & 1 deletion crates/supabase-client/src/client/unauthenticated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tokio::sync::RwLock;

use super::authenticated::AuthenticatedSupabaseClient;
use super::construct_client;
use crate::SupabaseClientError;
use crate::error::SupabaseClientError;

pub struct SupabaseClient {
pub(crate) supabase_url: url::Url,
Expand Down
3 changes: 1 addition & 2 deletions crates/supabase-client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pub use error::SupabaseClientError;
mod client;
mod error;
pub mod error;
pub use client::{
query_builder, AuthenticatedSupabaseClient, PostgRestQuery, SupabaseClient, SupabaseClientExt,
};

0 comments on commit fa51bfb

Please sign in to comment.