cargussy format
This commit is contained in:
parent
5b985b0059
commit
56db49bdfe
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ impl<I: IndexableId, T: GetId<I> + Clone> MemCache<I, T> {
|
|||
for _ in 0..capacity {
|
||||
lines.push(RwLock::new(None));
|
||||
}
|
||||
MemCache { lines, _phantom: PhantomData }
|
||||
MemCache {
|
||||
lines,
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get(&self, id: I) -> Option<T> {
|
||||
|
|
Loading…
Reference in a new issue