From 964c30b8b9b676b52b757d538ab332e23758deb0 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Tue, 18 Aug 2020 12:20:08 -0600 Subject: [PATCH] Fix clippy warnings --- src/migrations.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/migrations.rs b/src/migrations.rs index a57fa92..6c02dde 100644 --- a/src/migrations.rs +++ b/src/migrations.rs @@ -136,11 +136,11 @@ impl Migrations { return Err(MigrationError::VersionTooNew(db_version)); } let mig_range = self.migrations.range((Excluded(db_version), Unbounded)); - let mut trans = conn.transaction()?; + let trans = conn.transaction()?; let mut last_ver: MigrationVersion = NO_MIGRATIONS; for (ver, mig) in mig_range { debug!(version = ver, "applying migration version"); - mig.up(&mut trans)?; + mig.up(&trans)?; last_ver = *ver; } if last_ver != NO_MIGRATIONS {