From 310a09b5a4f6562db4ba0c5dd002a4cfba1441d2 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 22 Aug 2023 01:00:18 -0400 Subject: [PATCH] clippy fix --- coordinator/src/tributary/db.rs | 10 ---------- coordinator/src/tributary/scanner.rs | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/coordinator/src/tributary/db.rs b/coordinator/src/tributary/db.rs index 648d76e3..04c42748 100644 --- a/coordinator/src/tributary/db.rs +++ b/coordinator/src/tributary/db.rs @@ -31,16 +31,6 @@ impl TributaryDb { 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 { - Self::tributary_key(b"slash_point", [genesis, id].concat()) - } - */ - - pub fn slash_vote_key(genesis: [u8; 32], id: [u8; 13], target: [u8; 32]) -> Vec { - Self::tributary_key(b"slash_vote", [genesis.as_slice(), &id, &target].concat()) - } - fn fatal_slash_key(genesis: [u8; 32]) -> Vec { Self::tributary_key(b"fatal_slash", genesis) } diff --git a/coordinator/src/tributary/scanner.rs b/coordinator/src/tributary/scanner.rs index 7740f668..acd3abb6 100644 --- a/coordinator/src/tributary/scanner.rs +++ b/coordinator/src/tributary/scanner.rs @@ -16,7 +16,7 @@ use tributary::{ }, }; -use serai_db::{Get, DbTxn}; +use serai_db::DbTxn; use crate::{ Db,