Skip to content

Commit

Permalink
use extern crate in doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik1000 committed Dec 26, 2021
1 parent ed0aaeb commit 95f4033
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions sqlx-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,7 @@ bstr = { version = "0.2.14", default-features = false, features = ["std"], optio
git2 = { version = "0.13.20", default-features = false, optional = true }
hashlink = "0.7.0"
indexmap = "1.7.0"


[dev-dependencies]
sqlx = { path = "../", features = ["runtime-tokio-rustls", "sqlite"] }
11 changes: 6 additions & 5 deletions sqlx-core/src/from_row.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ use crate::row::Row;
/// You can also implement the [`FromRow`] trait by hand. This can be useful if you
/// have a struct with a field that needs manuel decoding:
///
/// ```rust,ignore
/// # use sqlx_core::from_row::FromRow;
/// # use sqlx_core::error::Result;
/// # use sqlx_core::sqlite::{SqliteRow};
/// # use crate::sqlx_core::row::Row;
/// ```rust
/// # extern crate sqlx;
/// use sqlx::FromRow;
/// use sqlx::error::Result;
/// use sqlx::sqlite::SqliteRow;
/// use sqlx::Row;
///
/// struct MyCustomType {
/// custom: String,
Expand Down

0 comments on commit 95f4033

Please sign in to comment.