MCPcopy Create free account
hub / github.com/GCWing/BitFun / build_disabled_project_skill_keys

Function build_disabled_project_skill_keys

src/apps/desktop/src/api/skill_api.rs:280–290  ·  view source on GitHub ↗
(
    all_skills: &[SkillInfo],
    enabled_keys: &HashSet<String>,
)

Source from the content-addressed store, hash-verified

278}
279
280fn build_disabled_project_skill_keys(
281 all_skills: &[SkillInfo],
282 enabled_keys: &HashSet<String>,
283) -> Vec<String> {
284 all_skills
285 .iter()
286 .filter(|skill| skill.level == SkillLocation::Project)
287 .filter(|skill| !enabled_keys.contains(&skill.key))
288 .map(|skill| skill.key.clone())
289 .collect()
290}
291
292async fn persist_project_mode_skill_selection_local(
293 mode_id: &str,

Callers 1

Calls 4

collectMethod · 0.80
iterMethod · 0.80
containsMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected