Fix typos in examples/diesel-postgres/src/main.rs (#2159)

This commit is contained in:
Igor Shevchenko 2023-08-08 03:13:13 -05:00 committed by GitHub
parent 9dbfdbb4df
commit 8e033e7f88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,8 +22,8 @@ use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
use std::net::SocketAddr; use std::net::SocketAddr;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
// this embeddes the migrations into the application binary // this embeds the migrations into the application binary
// the migration path is releative to the `CARGO_MANIFEST_DIR` // the migration path is relative to the `CARGO_MANIFEST_DIR`
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations/"); pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations/");
// normally part of your generated schema.rs file // normally part of your generated schema.rs file