From 1a4add2caafdcfc571d18bba5d5fe081601c2e02 Mon Sep 17 00:00:00 2001 From: redxef Date: Mon, 22 Jan 2024 21:04:52 +0100 Subject: [PATCH] Linting. --- src/main.rs | 4 ++-- src/model.rs | 8 ++++---- src/wg.rs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main.rs b/src/main.rs index 072b779..41f8fe3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,9 @@ use clap::Parser; use helpers::command_output; use std::{str::FromStr, collections::HashMap}; -use tokio::io::{self, AsyncBufReadExt, BufReader}; +use tokio::io::{AsyncBufReadExt, BufReader}; use warp::Filter; -use wg::Peer; + mod event; mod helpers; diff --git a/src/model.rs b/src/model.rs index 89497bf..9ee305b 100644 --- a/src/model.rs +++ b/src/model.rs @@ -1,9 +1,9 @@ -use std::str::FromStr; -use std::sync::Arc; -use cidr::IpInet; + + + use serde::{Deserialize, Serialize}; -use tokio::sync::Mutex; + use crate::event::Event; diff --git a/src/wg.rs b/src/wg.rs index 6658e7c..3d56a35 100644 --- a/src/wg.rs +++ b/src/wg.rs @@ -1,10 +1,10 @@ use cidr::IpInet; -use serde::de::{self, Error as _, MapAccess, Visitor}; + use serde::{Deserialize, Deserializer, Serialize}; use serde_with::formats::CommaSeparator; use serde_with::StringWithSeparator; -use serde_with::{serde_as, Map, Seq}; -use std::collections::HashMap; +use serde_with::{serde_as}; + use std::path::{Path, PathBuf}; fn de_one_many<'de, T, D>(deserializer: D) -> Result, D::Error>