Skip to content

Commit

Permalink
refactor: remove useless serde derives
Browse files Browse the repository at this point in the history
  • Loading branch information
norskeld committed Feb 27, 2024
1 parent 69e9932 commit e69b5a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ anyhow = "1.0.80"
clap = { version = "4.5.1", features = ["derive"] }
indicatif = "0.17.8"
reqwest = { version = "0.11.24", features = ["json"] }
serde = { version = "1.0.197", features = ["derive"] }
serde = "1.0.197"
serde_json = "1.0.114"
tabled = "0.15.0"
thiserror = "1.0.57"
Expand Down
3 changes: 1 addition & 2 deletions src/coord.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use serde::{Deserialize, Serialize};
use serde_json::Value;
use thiserror::Error;

Expand All @@ -13,7 +12,7 @@ pub enum CoordError {
}

/// Represents a point on Earth.
#[derive(Clone, Copy, Debug, Serialize, Deserialize)]
#[derive(Clone, Copy, Debug)]
pub struct Coord {
latitude: f64,
longitude: f64,
Expand Down
5 changes: 2 additions & 3 deletions src/relays.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::fmt::{self, Debug, Display};
use std::fs;
use std::path::PathBuf;

use serde::{Deserialize, Serialize};
use serde_json::Value;
use thiserror::Error;

Expand All @@ -25,7 +24,7 @@ pub enum RelaysError {
UnsupportedSystem(String),
}

#[derive(Clone, Copy, Debug, Serialize, Deserialize, PartialEq)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum Protocol {
OpenVPN,
WireGuard,
Expand All @@ -40,7 +39,7 @@ impl Display for Protocol {
}
}

#[derive(Clone, Debug, Serialize, Deserialize)]
#[derive(Clone, Debug)]
pub struct Relay {
pub ip: String,
pub city: String,
Expand Down

0 comments on commit e69b5a7

Please sign in to comment.