cargussy format

This commit is contained in:
anna 2022-12-27 02:17:02 +01:00
parent 5b985b0059
commit 56db49bdfe
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -29,7 +29,10 @@ impl<I: IndexableId, T: GetId<I> + Clone> MemCache<I, T> {
for _ in 0..capacity { for _ in 0..capacity {
lines.push(RwLock::new(None)); lines.push(RwLock::new(None));
} }
MemCache { lines, _phantom: PhantomData } MemCache {
lines,
_phantom: PhantomData,
}
} }
pub async fn get(&self, id: I) -> Option<T> { pub async fn get(&self, id: I) -> Option<T> {