(policy: &mut SandboxPolicy)
| 41 | } |
| 42 | |
| 43 | pub fn strip_provider_rule_names(policy: &mut SandboxPolicy) -> bool { |
| 44 | let original_len = policy.network_policies.len(); |
| 45 | policy |
| 46 | .network_policies |
| 47 | .retain(|key, _| !is_provider_rule_name(key)); |
| 48 | policy.network_policies.len() != original_len |
| 49 | } |
| 50 | |
| 51 | /// Compose a normal sandbox policy from user-authored policy plus provider |
| 52 | /// policy layers. |
no test coverage detected