Document migrate! (and small fixes)

This commit is contained in:
Raphaël Thériault
2020-07-23 15:25:13 -04:00
parent e5e9665bd9
commit 8381e87d4a
5 changed files with 46 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ impl Migrator {
}
/// Creates a new instance from a static slice of migrations.
pub async fn from_static(migrations: &'static [Migration]) -> Self {
pub fn from_static(migrations: &'static [Migration]) -> Self {
Self {
migrations: Cow::Borrowed(migrations),
}