Use RwLock instead of Lock for SourceMap::files

This commit is contained in:
Tomasz Miąsko 2020-10-29 00:00:00 +00:00
parent 2661a4edb9
commit 79cc5099b1
2 changed files with 5 additions and 5 deletions

View file

@ -512,7 +512,7 @@ impl<T: Clone> Clone for Lock<T> {
}
}
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct RwLock<T>(InnerRwLock<T>);
impl<T> RwLock<T> {