From 75b13cc30d1aa6142af21372df80548e8f9f5a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Alejandro=20Montoya=20Corte=CC=81s?= Date: Wed, 19 Jul 2023 14:50:55 -0500 Subject: [PATCH] Removes unused trait --- crates/bench/src/data.rs | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/crates/bench/src/data.rs b/crates/bench/src/data.rs index 3d6341db29..8b24b43d13 100644 --- a/crates/bench/src/data.rs +++ b/crates/bench/src/data.rs @@ -1,36 +1,7 @@ -use crate::utils::{encode, ResultBench, START_B}; +use crate::utils::{encode, START_B}; use clap::ValueEnum; -use std::marker::PhantomData; use std::ops::Range; -pub trait BuildDb { - fn build(prefill: bool) -> ResultBench - where - Self: Sized; -} - -pub struct Pool { - pub(crate) instance: u8, - pub(crate) prefill: bool, - _x: PhantomData, -} - -impl Pool { - pub fn new(prefill: bool) -> ResultBench { - Ok(Self { - instance: 0, - prefill, - _x: Default::default(), - }) - } - - #[allow(clippy::should_implement_trait)] - pub fn next(&mut self) -> ResultBench { - self.instance += 1; - T::build(self.prefill) - } -} - #[derive(Debug)] pub struct Data { pub(crate) a: i32,