mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-09 12:29:27 +00:00
clippy fix
This commit is contained in:
parent
c65bb70741
commit
310a09b5a4
2 changed files with 1 additions and 11 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ use tributary::{
|
|||
},
|
||||
};
|
||||
|
||||
use serai_db::{Get, DbTxn};
|
||||
use serai_db::DbTxn;
|
||||
|
||||
use crate::{
|
||||
Db,
|
||||
|
|
Loading…
Reference in a new issue