From 9d8e6ee4c9ecbdc9b03f18aa4924def09eff8837 Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Mon, 30 Dec 2019 23:43:38 +0100 Subject: [PATCH] [util/migration]: remove needless `static` bounds (#11348) --- util/migration-rocksdb/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/migration-rocksdb/src/lib.rs b/util/migration-rocksdb/src/lib.rs index 72e6cab7d..8e3e8bd62 100644 --- a/util/migration-rocksdb/src/lib.rs +++ b/util/migration-rocksdb/src/lib.rs @@ -96,7 +96,7 @@ impl Batch { } /// A generalized migration from the given db to a destination db. -pub trait Migration: 'static { +pub trait Migration { /// Number of columns in the database before the migration. fn pre_columns(&self) -> u32 { self.columns() } /// Number of columns in database after the migration. @@ -111,7 +111,7 @@ pub trait Migration: 'static { } /// A simple migration over key-value pairs of a single column. -pub trait SimpleMigration: 'static { +pub trait SimpleMigration { /// Number of columns in database after the migration. fn columns(&self) -> u32; /// Version of database after the migration. @@ -217,7 +217,7 @@ impl Manager { } /// Adds new migration rules. - pub fn add_migration(&mut self, migration: T) -> io::Result<()> where T: Migration { + pub fn add_migration(&mut self, migration: T) -> io::Result<()> where T: Migration { let is_new = match self.migrations.last() { Some(last) => migration.version() > last.version(), None => true,