Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
roberts-pumpurs committed Sep 28, 2024
1 parent e6e92bc commit cc511c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/supabase-client/src/client/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
mod authenticated;
mod unauthenticated;

use std::future::Future;
use std::marker::PhantomData;

pub use authenticated::AuthenticatedSupabaseClient;
use reqwest::header;
use supabase_auth::SUPABASE_KEY;
use tracing::{error, info, info_span, instrument, Instrument};
use tracing::{error, info, instrument};
pub use unauthenticated::SupabaseClient;

use crate::error;
Expand Down Expand Up @@ -73,12 +72,12 @@ impl<T: PostgRestQuery> SupabaseResponse<T> {
Ok(())
}

// #[instrument(name = "parse_json_err", skip(self))]
#[instrument(name = "parse_json_err", skip(self))]
pub async fn json_err(
self,
) -> Result<Result<(), error::postgrest_error::Error>, SupabaseClientError> {
let status = self.response.status();
let mut bytes = self.response.bytes().await?.to_vec();
let bytes = self.response.bytes().await?.to_vec();
if status.is_success() {
Ok(Ok(()))
} else {
Expand Down

0 comments on commit cc511c4

Please sign in to comment.