fix migration tests

This commit is contained in:
Robert Habermeier 2016-07-08 18:28:11 +02:00
parent 3b0b1375f2
commit 274e7767b4
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ impl SimpleMigration for Migration0 {
1
}
fn simple_migrate(&self, key: Vec<u8>, value: Vec<u8>) -> Option<(Vec<u8>, Vec<u8>)> {
fn simple_migrate(&mut self, key: Vec<u8>, value: Vec<u8>) -> Option<(Vec<u8>, Vec<u8>)> {
let mut key = key;
key.push(0x11);
let mut value = value;
@ -78,7 +78,7 @@ impl SimpleMigration for Migration1 {
2
}
fn simple_migrate(&self, key: Vec<u8>, _value: Vec<u8>) -> Option<(Vec<u8>, Vec<u8>)> {
fn simple_migrate(&mut self, key: Vec<u8>, _value: Vec<u8>) -> Option<(Vec<u8>, Vec<u8>)> {
Some((key, vec![]))
}
}