From 686e26ad6d61ba92a217b069cf2f1c977055d1ae Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sat, 18 Nov 2023 21:43:28 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9A=B0=EF=B8=8F=20=20chore:=20remove=20the?= =?UTF-8?q?=20serialize=20&=20deserialize=20traits=20on=20the=20struct=20(?= =?UTF-8?q?#302)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/parser_models.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/models/parser_models.rs b/src/models/parser_models.rs index 9dad348..a669bd6 100644 --- a/src/models/parser_models.rs +++ b/src/models/parser_models.rs @@ -1,8 +1,6 @@ //! This module provides public models for handling, storing and serializing parsed config file //! options from config.lua by grouping them together. -use serde::{Deserialize, Serialize}; - /// A named struct which stores,deserializes, serializes and groups the parsed config file options /// of theme and colorscheme names into the Style struct which derives the `Clone`, `Serialize` /// and Deserialize traits where the `Clone` trait is derived for allowing the struct to be @@ -12,7 +10,7 @@ use serde::{Deserialize, Serialize}; /// order to allow the deserializing the json back to struct in aggregate function in /// aggregator.rs and create a new struct out of it and then serialize it back to json and pass /// it to the template files. -#[derive(Serialize, Deserialize, Clone, Default)] +#[derive(Clone, Default)] pub struct Style { /// It stores the parsed theme option used to set a theme for the website. pub theme: String,