Address pr feedback

This commit is contained in:
Eric Semeniuc 2020-11-14 09:12:21 -08:00 committed by Ryan Leckey
parent 892bbc95a9
commit c64b9bee45
No known key found for this signature in database
GPG Key ID: F8AA68C235AB08C9

View File

@ -47,9 +47,11 @@ impl Migrator {
/// # Examples
///
/// ```rust,no_run
/// # fn main() -> Result<(), sqlx_core::migrate::MigrateError> {
/// # use sqlx_core::migrate::MigrateError;
/// # fn main() -> Result<(), MigrateError> {
/// # sqlx_rt::block_on(async move {
/// let m = sqlx_core::migrate::Migrator::new(std::path::Path::new("./migrations")).await?;
/// # use sqlx_core::migrate::Migrator;
/// let m = Migrator::new(std::path::Path::new("./migrations")).await?;
/// let pool = sqlx_core::sqlite::SqlitePoolOptions::new().connect("sqlite::memory:").await?;
/// m.run(&pool).await
/// # })