diff --git a/webgestalt_lib/src/methods/nta.rs b/webgestalt_lib/src/methods/nta.rs index 13983c7..f7d2f9a 100644 --- a/webgestalt_lib/src/methods/nta.rs +++ b/webgestalt_lib/src/methods/nta.rs @@ -141,7 +141,7 @@ pub fn process_nta(config: NTAConfig) -> Vec<(String, f64)> { let node_indices: Vec = config .seeds .iter() - .map(|seed| *node_map.get(seed).unwrap()) + .filter_map(|seed| node_map.get(seed).cloned()) .collect(); let walk_res = random_walk_probability( &graph,