Remove some more cfg(test)s

This commit is contained in:
Vadim Petrochenkov 2019-08-02 01:58:40 +03:00
parent 3d0d6ee271
commit 62ec2cb7ac
11 changed files with 45 additions and 60 deletions

View file

@ -266,8 +266,10 @@ impl Cache {
.expect("invalid type mapped");
stepcache.get(step).cloned()
}
}
#[cfg(test)]
#[cfg(test)]
impl Cache {
pub fn all<S: Ord + Copy + Step>(&mut self) -> Vec<(S, S::Output)> {
let cache = self.0.get_mut();
let type_id = TypeId::of::<S>();
@ -279,7 +281,6 @@ impl Cache {
v
}
#[cfg(test)]
pub fn contains<S: Step>(&self) -> bool {
self.0.borrow().contains_key(&TypeId::of::<S>())
}