diff --git a/core/main/src/state/cap/generic_cap_state.rs b/core/main/src/state/cap/generic_cap_state.rs index 45c14d49d..133f85407 100644 --- a/core/main/src/state/cap/generic_cap_state.rs +++ b/core/main/src/state/cap/generic_cap_state.rs @@ -112,7 +112,8 @@ impl GenericCapState { let not_available = self.not_available.read().unwrap(); let mut result: Vec = Vec::new(); for fb_perm in request { - if fb_perm.role == CapabilityRole::Use && not_available.contains(&fb_perm.cap.as_str()) { + if fb_perm.role == CapabilityRole::Use && not_available.contains(&fb_perm.cap.as_str()) + { result.push(fb_perm.cap.clone()) } }