Skip to content

Commit

Permalink
chore: use sqlx::Result directly
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik1000 committed Jul 16, 2022
1 parent e703b72 commit 0199fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlx-core/src/from_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ use crate::row::Row;
///
///
/// ```rust,ignore
/// use sqlx::{FromRow, Result, sqlite::SqliteRow, sqlx::Row};
/// use sqlx::{FromRow, sqlite::SqliteRow, sqlx::Row};
/// struct MyCustomType {
/// custom: String,
/// }
Expand All @@ -140,7 +140,7 @@ use crate::row::Row;
/// }
///
/// impl FromRow<'_, SqliteRow> for Foo {
/// fn from_row(row: &SqliteRow) -> Result<Self> {
/// fn from_row(row: &SqliteRow) -> sqlx::Result<Self> {
/// Ok(Self {
/// bar: MyCustomType {
/// custom: row.try_get("custom")?
Expand Down

0 comments on commit 0199fa6

Please sign in to comment.