From 6d3e9f353ede605250a7de3bfeca405d4c20e566 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 10 Aug 2022 00:30:19 +0200 Subject: [PATCH] Refactor --- src/ipv4.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipv4.rs b/src/ipv4.rs index 064669b..aaff5d4 100644 --- a/src/ipv4.rs +++ b/src/ipv4.rs @@ -13,10 +13,10 @@ let i = 0 .. u32:max_value() # This is waaaay better than a stupid loop */ -#[derive(Debug)] +#[derive(Debug, Copy, Clone)] pub struct IPv4 { pub id: u64, - pub ip: Vec, + pub ip: [u8; 4], pub ignore: bool, }