clippy fix

This commit is contained in:
Luke Parker 2023-08-22 01:00:18 -04:00
parent c65bb70741
commit 310a09b5a4
No known key found for this signature in database
2 changed files with 1 additions and 11 deletions

View file

@ -31,16 +31,6 @@ impl<D: Db> TributaryDb<D> {
self.0.get(Self::block_key(genesis)).map(|last| last.try_into().unwrap()).unwrap_or(genesis)
}
/* TODO
pub fn slash_point_key(genesis: [u8; 32], id: [u8; 32]) -> Vec<u8> {
Self::tributary_key(b"slash_point", [genesis, id].concat())
}
*/
pub fn slash_vote_key(genesis: [u8; 32], id: [u8; 13], target: [u8; 32]) -> Vec<u8> {
Self::tributary_key(b"slash_vote", [genesis.as_slice(), &id, &target].concat())
}
fn fatal_slash_key(genesis: [u8; 32]) -> Vec<u8> {
Self::tributary_key(b"fatal_slash", genesis)
}

View file

@ -16,7 +16,7 @@ use tributary::{
},
};
use serai_db::{Get, DbTxn};
use serai_db::DbTxn;
use crate::{
Db,