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 f768123 commit 9c34aa4Copy full SHA for 9c34aa4
async-mutex/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "async-mutex"
3
-version = "1.3.0"
+version = "1.4.0"
4
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
5
edition = "2018"
6
description = "Async mutex"
async-mutex/src/lib.rs
@@ -62,7 +62,7 @@ impl<T> Mutex<T> {
62
///
63
/// let mutex = Mutex::new(0);
64
/// ```
65
- pub fn new(data: T) -> Mutex<T> {
+ pub const fn new(data: T) -> Mutex<T> {
66
Mutex {
67
state: AtomicUsize::new(0),
68
lock_ops: Event::new(),
0 commit comments