diff --git a/src/recently_used.rs b/src/recently_used.rs index 63298b5..196cd20 100644 --- a/src/recently_used.rs +++ b/src/recently_used.rs @@ -1,7 +1,6 @@ use std::{ borrow::Borrow, collections::{hash_map::Entry, HashMap}, - fmt, hash::Hash, }; @@ -10,7 +9,6 @@ struct RecentlyUsedItem { value: V, } -#[derive(Debug)] enum Node { Value { value: V, @@ -30,7 +28,7 @@ pub struct RecentlyUsedMap { free: Option, } -impl RecentlyUsedMap { +impl RecentlyUsedMap { pub fn new() -> Self { Self::with_capacity(0) }