You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
Fix doc generation by removing mentions of LookupResultExt::to_option
This commit is contained in:
@ -31,7 +31,7 @@
|
|||||||
//! # use ulid::Ulid;
|
//! # use ulid::Ulid;
|
||||||
//! # use rand::RngCore;
|
//! # use rand::RngCore;
|
||||||
//! # use mas_storage::Clock;
|
//! # use mas_storage::Clock;
|
||||||
//! # use mas_storage_pg::{DatabaseError, ExecuteExt, LookupResultExt};
|
//! # use mas_storage_pg::{DatabaseError, ExecuteExt};
|
||||||
//! # use sqlx::PgConnection;
|
//! # use sqlx::PgConnection;
|
||||||
//! # use uuid::Uuid;
|
//! # use uuid::Uuid;
|
||||||
//! #
|
//! #
|
||||||
@ -103,9 +103,8 @@
|
|||||||
//! )
|
//! )
|
||||||
//! .bind(Uuid::from(id))
|
//! .bind(Uuid::from(id))
|
||||||
//! .traced()
|
//! .traced()
|
||||||
//! .fetch_one(&mut *self.conn)
|
//! .fetch_optional(&mut *self.conn)
|
||||||
//! .await
|
//! .await?;
|
||||||
//! .to_option()?;
|
|
||||||
//!
|
//!
|
||||||
//! let Some(res) = res else { return Ok(None) };
|
//! let Some(res) = res else { return Ok(None) };
|
||||||
//!
|
//!
|
||||||
@ -160,7 +159,7 @@
|
|||||||
//! the span.
|
//! the span.
|
||||||
//! - The IDs are stored as [`Uuid`] in PostgreSQL, so conversions are required
|
//! - The IDs are stored as [`Uuid`] in PostgreSQL, so conversions are required
|
||||||
//! - "Not found" errors are handled by returning `Ok(None)` instead of an
|
//! - "Not found" errors are handled by returning `Ok(None)` instead of an
|
||||||
//! error. The [`LookupResultExt::to_option`] method helps to do that.
|
//! error.
|
||||||
//!
|
//!
|
||||||
//! [`Ulid`]: ulid::Ulid
|
//! [`Ulid`]: ulid::Ulid
|
||||||
//! [`Uuid`]: uuid::Uuid
|
//! [`Uuid`]: uuid::Uuid
|
||||||
|
Reference in New Issue
Block a user