Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Apr 10, 2024
1 parent 0326961 commit 2b500da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions iroh-dns-server/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,10 @@ pub fn create_app(state: AppState) -> Router {
.with_state(state);

// configure app
let app = router
router
.layer(cors)
.layer(trace)
.route_layer(middleware::from_fn(metrics_middleware));

app
.route_layer(middleware::from_fn(metrics_middleware))
}

/// Record request metrics.
Expand Down
2 changes: 1 addition & 1 deletion iroh-dns-server/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,6 @@ impl CachedZone {

fn resolve(&self, name: &Name, record_type: RecordType) -> Option<Arc<RecordSet>> {
let key = RrKey::new(name.into(), record_type);
self.records.get(&key).map(Arc::clone)
self.records.get(&key).cloned()
}
}

0 comments on commit 2b500da

Please sign in to comment.