Why does `DiskCache` need to impl `Display`?
IgnisDa opened this issue · comments
Diptesh Choudhuri commented
Looking at the docs for DiskCache here, it defines:
impl<K, V> DiskCache<K, V>
where
K: Display,
V: Serialize + DeserializeOwned
Is there any particular reason why it needs to implement Display
?
Diptesh Choudhuri commented
If possible, could this be removed completely? If not, atleast be gated behind a feature?
Diptesh Choudhuri commented
@jaemk Could you take a look at this please?
Diptesh Choudhuri commented
I tried to do it here but it did not work: https://github.com/IgnisDa/cached/tree/remove-display-trait
Diptesh Choudhuri commented
@omid Made a PR.