Trim scenario source mutators

This commit is contained in:
andrussal 2026-03-08 13:37:01 +01:00
parent d2665bdb71
commit 0ff1ae1904

View File

@ -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 };
}