mirror of
https://github.com/tokio-rs/tracing.git
synced 2026-01-25 04:16:18 +00:00
core: add missing const (#3449)
Auto-merge in #3314 and it merged despite CI failing. This fixes it.
This commit is contained in:
@@ -11,7 +11,7 @@ pub(crate) struct Mutex<T> {
|
||||
}
|
||||
|
||||
impl<T> Mutex<T> {
|
||||
pub(crate) fn new(data: T) -> Self {
|
||||
pub(crate) const fn new(data: T) -> Self {
|
||||
Self {
|
||||
inner: crate::spin::Mutex::new(data),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user