Skip to content

Commit 9bc70ff

Browse files
committed
fix:polaris-rust clippy
1 parent 2403e3f commit 9bc70ff

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/config/default.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ impl ConfigFileAPI for DefaultConfigFileAPI {
162162
let mut watchers = self.watchers.watchers.write().await;
163163

164164
let watch_key = req.get_key();
165-
let items = watchers
166-
.entry(watch_key.clone())
167-
.or_insert_with(Vec::new);
165+
let items = watchers.entry(watch_key.clone()).or_insert_with(Vec::new);
168166

169167
items.push(ConfigFileWatcher { req });
170168
Ok(WatchConfigFileResponse {})

0 commit comments

Comments
 (0)