core: add missing const (#3449)

Auto-merge in #3314 and it merged despite
CI failing. This fixes it.
This commit is contained in:
Jonas Platte
2025-12-28 18:23:16 +01:00
committed by GitHub
parent 0c32367cf9
commit efc690fa6b

View File

@@ -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),
}