Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Apr 29, 2024
1 parent 5008e38 commit e204f2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zenoh/src/net/routing/interceptor/authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ impl PolicyEnforcer {
*/
pub fn policy_information_point(
&self,
config_rule_set: &Vec<AclConfigRules>,
config_rule_set: &[AclConfigRules],
) -> ZResult<PolicyInformation> {
let mut policy_rules: Vec<PolicyRule> = Vec::new();
for rule_offset in 0..config_rule_set.len() {
for (rule_offset, config_rule) in config_rule_set.iter().enumerate() {
// config validation
let mut validated_rule = config_rule_set[rule_offset].clone();
let mut validated_rule = config_rule.clone();
let mut validation_err = String::new();
if validated_rule.interfaces.is_empty() {
tracing::warn!("ACL config interfaces list is empty. Applying rule #{} to all network interfaces", rule_offset);
Expand Down

0 comments on commit e204f2d

Please sign in to comment.