From 0ff1ae1904416eb049dd817f258a3501c76a6834 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 8 Mar 2026 13:37:01 +0100 Subject: [PATCH] Trim scenario source mutators --- testing-framework/core/src/scenario/sources/model.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing-framework/core/src/scenario/sources/model.rs b/testing-framework/core/src/scenario/sources/model.rs index 0a3dc69..903aff1 100644 --- a/testing-framework/core/src/scenario/sources/model.rs +++ b/testing-framework/core/src/scenario/sources/model.rs @@ -118,7 +118,7 @@ impl ScenarioSources { Self::ExternalOnly { external } } - pub fn add_external_node(&mut self, node: ExternalNodeSource) { + pub(crate) fn add_external_node(&mut self, node: ExternalNodeSource) { match self { Self::Managed { external } | Self::Attached { external, .. } @@ -126,12 +126,12 @@ impl ScenarioSources { } } - pub fn set_attach(&mut self, attach: AttachSource) { + pub(crate) fn set_attach(&mut self, attach: AttachSource) { let external = self.external_nodes().to_vec(); *self = Self::Attached { attach, external }; } - pub fn set_external_only(&mut self) { + pub(crate) fn set_external_only(&mut self) { let external = self.external_nodes().to_vec(); *self = Self::ExternalOnly { external }; }