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 0c32367 commit efc690fCopy full SHA for efc690f
1 file changed
tracing-core/src/sync.rs
@@ -11,7 +11,7 @@ pub(crate) struct Mutex<T> {
11
}
12
13
impl<T> Mutex<T> {
14
- pub(crate) fn new(data: T) -> Self {
+ pub(crate) const fn new(data: T) -> Self {
15
Self {
16
inner: crate::spin::Mutex::new(data),
17
0 commit comments