MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / dedup_strings

Function dedup_strings

crates/openshell-policy/src/merge.rs:817–820  ·  view source on GitHub ↗
(values: &mut Vec<String>)

Source from the content-addressed store, hash-verified

815}
816
817fn dedup_strings(values: &mut Vec<String>) {
818 let mut seen = HashSet::new();
819 values.retain(|value| seen.insert(value.clone()));
820}
821
822fn dedup_binaries(values: &mut Vec<NetworkBinary>) {
823 let mut deduped: Vec<NetworkBinary> = Vec::with_capacity(values.len());

Callers 1

normalize_endpointFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected