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

Function push_unique_source

packages/server/src/inspector.rs:667–671  ·  view source on GitHub ↗
(sources: &mut Vec<String>, source: &str)

Source from the content-addressed store, hash-verified

665}
666
667fn push_unique_source(sources: &mut Vec<String>, source: &str) {
668 if !sources.iter().any(|value| value == source) {
669 sources.push(source.to_owned());
670 }
671}
672
673impl InspectorAgentHandle {
674 async fn query(&self, method: &str, params: Value, wait: Duration) -> Result<Value, String> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected