Skip to content

Commit

Permalink
fix: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Feb 1, 2024
1 parent f517e6b commit 95083b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions src/hot_reload/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,18 +265,8 @@ impl<'a> DevSession<'a> {
}
Command::BootstrapGroup(group_name, full_path, rel_path) => {
let should = group_name == "global" || self.builder.app.network.as_ref().is_some_and(|nw| {
if self.builder.app.server.name == nw.proxy {
if nw.proxy_groups.contains(&group_name) {
return true;
}
}

if nw.servers.get(&self.builder.app.server.name)
.is_some_and(|serv| serv.groups.contains(&group_name)) {
return true;
}

false
self.builder.app.server.name == nw.proxy && nw.proxy_groups.contains(&group_name) && nw.servers.get(&self.builder.app.server.name)
.is_some_and(|serv| serv.groups.contains(&group_name))
});

if should {
Expand Down
2 changes: 1 addition & 1 deletion src/util/md.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl MarkdownTable {

let hack = self.headers.clone();

for (k, v) in map.into_iter().filter(|(k, _)| !hack.contains(&k)) {
for (k, v) in map.into_iter().filter(|(k, _)| !hack.contains(k)) {
self.headers.push(k);
row.push(v);
}
Expand Down

0 comments on commit 95083b3

Please sign in to comment.