Skip to content
Snippets Groups Projects
Commit 8858dc42 authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

chore: new rustfmt dropped

parent 71146eef
No related branches found
No related tags found
1 merge request!1491perf: introduce TopologyCache
...@@ -23,7 +23,10 @@ pub trait MutexLike<T> { ...@@ -23,7 +23,10 @@ pub trait MutexLike<T> {
} }
impl<T> MutexLike<T> for TMutex<T> { impl<T> MutexLike<T> for TMutex<T> {
type Guard<'a> = TMutexGuard<'a, T> where T: 'a; type Guard<'a>
= TMutexGuard<'a, T>
where
T: 'a;
fn lock(&self) -> Self::Guard<'_> { fn lock(&self) -> Self::Guard<'_> {
self.lock() self.lock()
...@@ -31,8 +34,10 @@ impl<T> MutexLike<T> for TMutex<T> { ...@@ -31,8 +34,10 @@ impl<T> MutexLike<T> for TMutex<T> {
} }
impl<T> MutexLike<T> for RefCell<T> { impl<T> MutexLike<T> for RefCell<T> {
type Guard<'a> = RefMut<'a, T> type Guard<'a>
where T: 'a; = RefMut<'a, T>
where
T: 'a;
fn lock(&self) -> Self::Guard<'_> { fn lock(&self) -> Self::Guard<'_> {
self.borrow_mut() self.borrow_mut()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment