Skip to content

Commit

Permalink
Organize imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
ximon18 committed Sep 26, 2024
1 parent c66895d commit b89f081
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion examples/ixfr-client.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/// Using the `domain::net::client` module for sending a query.
use core::str::FromStr;

use std::vec::Vec;

use tokio::net::TcpStream;

use core::str::FromStr;
use domain::base::Name;
use domain::base::Rtype;
use domain::base::{MessageBuilder, Serial, Ttl};
Expand Down
6 changes: 3 additions & 3 deletions examples/serve-zone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ use std::process::exit;
use std::sync::{Arc, Mutex};
use std::time::Duration;

use octseq::Octets;
use rand::distributions::Alphanumeric;
use rand::Rng;
use tokio::net::{TcpListener, UdpSocket};
use tracing_subscriber::EnvFilter;

Expand Down Expand Up @@ -56,9 +59,6 @@ use domain::zonetree::{
Answer, InMemoryZoneDiff, Rrset, SharedRrset, StoredName,
};
use domain::zonetree::{Zone, ZoneTree};
use octseq::Octets;
use rand::distributions::Alphanumeric;
use rand::Rng;

#[tokio::main()]
async fn main() {
Expand Down

0 comments on commit b89f081

Please sign in to comment.