Skip to content

Commit

Permalink
Make DerefMut impl on Service only available in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-folsom committed Jan 14, 2024
1 parent 5e885a4 commit 3d39746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/fj-core/src/services/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impl<S: State> Deref for Service<S> {
}
}

#[cfg(test)]
impl<S: State> DerefMut for Service<S> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.state
Expand Down

0 comments on commit 3d39746

Please sign in to comment.