Skip to content

Commit

Permalink
optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Jul 19, 2024
1 parent d2961aa commit 0c8801e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mmdb/types/mmdb_asn_entry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::networking::types::asn::Asn;
use serde::Deserialize;

use crate::networking::types::asn::Asn;

#[derive(Deserialize)]
pub struct MmdbAsnEntry<'a> {
#[serde(alias = "autonomous_system_number", alias = "asn")]
Expand Down
3 changes: 2 additions & 1 deletion src/mmdb/types/mmdb_country_entry.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::countries::types::country::Country;
use serde::Deserialize;

use crate::countries::types::country::Country;

#[derive(Deserialize)]
#[serde(transparent)]
pub struct MmdbCountryEntry<'a> {
Expand Down
3 changes: 2 additions & 1 deletion src/mmdb/types/mmdb_reader.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::net::IpAddr;

use maxminddb::{MaxMindDBError, Reader};
use serde::Deserialize;
use std::net::IpAddr;

pub enum MmdbReader {
Default(Reader<&'static [u8]>),
Expand Down

0 comments on commit 0c8801e

Please sign in to comment.