Skip to content

Commit efc690f

Browse files
authored
core: add missing const (#3449)
Auto-merge in #3314 and it merged despite CI failing. This fixes it.
1 parent 0c32367 commit efc690f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing-core/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub(crate) struct Mutex<T> {
1111
}
1212

1313
impl<T> Mutex<T> {
14-
pub(crate) fn new(data: T) -> Self {
14+
pub(crate) const fn new(data: T) -> Self {
1515
Self {
1616
inner: crate::spin::Mutex::new(data),
1717
}

0 commit comments

Comments
 (0)