projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(prob) f use new simd impl wrappers
[rust-lightning]
/
lightning
/
src
/
sync
/
fairrwlock.rs
diff --git
a/lightning/src/sync/fairrwlock.rs
b/lightning/src/sync/fairrwlock.rs
index de609d5b3d711059568daca1e9d408be80891321..23b8c23db282b20ad5c90d3fc937e367e6b6dac6 100644
(file)
--- a/
lightning/src/sync/fairrwlock.rs
+++ b/
lightning/src/sync/fairrwlock.rs
@@
-45,6
+45,7
@@
impl<T> FairRwLock<T> {
self.lock.read()
}
+ #[allow(dead_code)]
pub fn try_write(&self) -> TryLockResult<RwLockWriteGuard<'_, T>> {
self.lock.try_write()
}