Skip to content

Commit

Permalink
fix: failing doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Sep 13, 2023
1 parent 2fd43a3 commit b62f837
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion supabase-wrappers/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ impl From<CreateRuntimeError> for ErrorReport {
/// For example,
///
/// ```rust,no_run
/// # use supabase_wrappers::utils::CreateRuntimeError;
/// # fn main() -> Result<(), CreateRuntimeError> {
/// # use supabase_wrappers::prelude::create_async_runtime;
/// # struct Client {
/// # }
Expand All @@ -137,13 +139,15 @@ impl From<CreateRuntimeError> for ErrorReport {
/// # }
/// # let client = Client {};
/// # let sql = "";
/// let rt = create_async_runtime();
/// let rt = create_async_runtime()?;
///
/// // client.query() is an async function returning a Result
/// match rt.block_on(client.query(&sql)) {
/// Ok(result) => { }
/// Err(err) => { }
/// }
/// # Ok(())
/// # }
/// ```
#[inline]
pub fn create_async_runtime() -> Result<Runtime, CreateRuntimeError> {
Expand Down

0 comments on commit b62f837

Please sign in to comment.