Skip to content

Commit

Permalink
Add Serialize and Clone to Metadata struct.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Apr 5, 2024
1 parent 9045bfe commit f050f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/maxminddb/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use std::path::Path;

use ipnetwork::IpNetwork;
use serde::{de, Deserialize};
use serde::{de, Deserialize, Serialize};

#[cfg(feature = "mmap")]
pub use memmap2::Mmap;
Expand Down Expand Up @@ -62,7 +62,7 @@ impl de::Error for MaxMindDBError {
}
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize, Serialize, Clone, Debug)]
pub struct Metadata {
pub binary_format_major_version: u16,
pub binary_format_minor_version: u16,
Expand Down

0 comments on commit f050f32

Please sign in to comment.