MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / push_unique_source

Function push_unique_source

packages/server/src/api/routes.rs:4785–4789  ·  view source on GitHub ↗
(sources: &mut Vec<String>, source: &str)

Source from the content-addressed store, hash-verified

4783}
4784
4785fn push_unique_source(sources: &mut Vec<String>, source: &str) {
4786 if !sources.iter().any(|value| value == source) {
4787 sources.push(source.to_owned());
4788 }
4789}
4790
4791fn available_sources_for_session(session: &InspectorSession) -> Vec<String> {
4792 let mut sources = Vec::new();

Calls

no outgoing calls

Tested by

no test coverage detected