Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed Apr 29, 2024
1 parent 19fb463 commit 295c0f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion iroh-dns-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ pub struct MainlineConfig {
#[allow(clippy::derivable_impls)]
impl Default for MainlineConfig {
fn default() -> Self {
Self { enabled: false, bootstrap: vec![]}
Self {
enabled: false,
bootstrap: vec![],
}
}
}

Expand Down
8 changes: 6 additions & 2 deletions iroh-dns-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ mod util;

#[cfg(test)]
mod tests {
use std::{net::{Ipv4Addr, Ipv6Addr, SocketAddr}, str::FromStr};
use std::{
net::{Ipv4Addr, Ipv6Addr, SocketAddr},
str::FromStr,
};

use anyhow::Result;
use hickory_resolver::{
Expand Down Expand Up @@ -190,7 +193,8 @@ mod tests {
.collect::<Vec<_>>();

// spawn our server with mainline support
let (server, nameserver, _http_url) = Server::spawn_for_tests_with_mainline(Some(bootstrap)).await?;
let (server, nameserver, _http_url) =
Server::spawn_for_tests_with_mainline(Some(bootstrap)).await?;

let origin = "irohdns.example.";

Expand Down

0 comments on commit 295c0f9

Please sign in to comment.