diff --git a/.gitignore b/.gitignore index bd62026b..6f561791 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ debug/ # Backup files generated by rust fmt **/*.rs.bk + +# Heaptrack dump files +heaptrack.* \ No newline at end of file diff --git a/server/src/client_api.rs b/server/src/client_api.rs index 86118df4..eb23b931 100644 --- a/server/src/client_api.rs +++ b/server/src/client_api.rs @@ -91,13 +91,12 @@ async fn resolve_features( query: Some(query), features: f .features - .clone() .into_iter() .filter(|f| { filters .name_prefix - .clone() - .map(|prefix| f.name.starts_with(&prefix)) + .as_ref() + .map(|prefix| f.name.starts_with(prefix)) .unwrap_or(true) }) .collect(),