From 3d397469ad54d9524e8feae8ad950dcfac8edc42 Mon Sep 17 00:00:00 2001 From: Nathan Folsom Date: Sat, 13 Jan 2024 19:25:12 -0800 Subject: [PATCH] Make DerefMut impl on Service only available in tests --- crates/fj-core/src/services/service.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/fj-core/src/services/service.rs b/crates/fj-core/src/services/service.rs index bacacd8b4f..93b0cc20e9 100644 --- a/crates/fj-core/src/services/service.rs +++ b/crates/fj-core/src/services/service.rs @@ -62,6 +62,7 @@ impl Deref for Service { } } +#[cfg(test)] impl DerefMut for Service { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.state