fix(config): Warn in release builds when both mimalloc and jemalloc are enabled

This commit is contained in:
Jade Ellis committed 2026-11-21 13:38:28 +00:00
1 parent 7294a3589d
commit 98d4022768
1 file changed
+2 -2
+2 -2
View File
@@ -5,7 +5,7 @@ use figment::Figment;
use ruma::{OwnedServerName, events::room::server_acl::RoomServerAclEventContent};
use super::DEPRECATED_KEYS;
use crate::{Config, Err, Result, Server, debug, debug_info, debug_warn, error, warn};
use crate::{Config, Err, Result, Server, debug, debug_info, error, warn};
/// Performs check() with additional checks specific to reloading old config
/// with new config.
@@ -44,7 +44,7 @@ pub fn check(config: &Config) -> Result {
}
if cfg!(all(feature = "mimalloc", feature = "jemalloc", not(target_env = "msvc"))) {
debug_warn!(
warn!(
"mimalloc and jemalloc compile-time features are both enabled, this causes jemalloc \
to be used."
);