From 3c10d342ebeac1bdc2f7eedebd3017843e284060 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 4 Apr 2021 17:36:58 -0700 Subject: [PATCH] - Removing dead_code attr from TEXT_CHANNEL + Adding Clone derivation to Channel struct --- tui/src/api_types.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tui/src/api_types.rs b/tui/src/api_types.rs index dce1024..928b417 100644 --- a/tui/src/api_types.rs +++ b/tui/src/api_types.rs @@ -1,9 +1,8 @@ -use serde::{Serialize, Deserialize}; +use serde::Deserialize; #[allow(dead_code)] const VOICE_CHANNEL: i32 = 1; -#[allow(dead_code)] -const TEXT_CHANNEL: i32 = 2; +pub const TEXT_CHANNEL: i32 = 2; // Network Types #[allow(dead_code)] @@ -18,11 +17,11 @@ pub struct Message { } -#[allow(dead_code)] +#[derive(Clone)] pub struct Channel { pub name: String, pub id: u64, - pub type_: i32, + pub r#type: i32, pub description: Option, }