We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4db0bf commit c4025faCopy full SHA for c4025fa
async-rwlock/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["asynchronous", "concurrency"]
13
readme = "../README.md"
14
15
[dependencies]
16
-async-mutex = "1.1.5"
+async-mutex = { path = "../async-mutex", version = "1.4.0" }
17
event-listener = "2.4.0"
18
19
[dev-dependencies]
async-rwlock/src/lib.rs
@@ -101,7 +101,7 @@ impl<T> RwLock<T> {
101
///
102
/// let lock = RwLock::new(0);
103
/// ```
104
- pub fn new(t: T) -> RwLock<T> {
+ pub const fn new(t: T) -> RwLock<T> {
105
RwLock {
106
mutex: Mutex::new(()),
107
no_readers: Event::new(),
0 commit comments