Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 2, 2020
1 parent 34b36f5 commit 7c38b3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zenoh-router/src/runtime/orchestrator.rs
Expand Up @@ -437,6 +437,7 @@ impl SessionOrchestrator {
}

#[allow(unreachable_patterns)]
#[allow(clippy::match_single_binding)]
async fn get_local_locators(&self) -> Vec<Locator> {
let mut result = vec![];
for locator in self.manager.get_locators().await {
Expand All @@ -462,7 +463,7 @@ impl SessionOrchestrator {
result.push(locator)
}
}
loc => result.push(loc),
locator => result.push(locator),
}
}
result
Expand Down

0 comments on commit 7c38b3a

Please sign in to comment.