From 87dfe4ace7ec07b0c74620b844bea9d88f8119c8 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 26 Nov 2023 21:31:06 -0800 Subject: [PATCH] server: cleanup lint. --- server/src/bin/server.rs | 1 - server/src/graphql.rs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/bin/server.rs b/server/src/bin/server.rs index a5d4fe9..d3c01d1 100644 --- a/server/src/bin/server.rs +++ b/server/src/bin/server.rs @@ -18,7 +18,6 @@ use server::{ error::ServerError, graphql::{GraphqlSchema, QueryRoot}, }; -use shared::Message; #[get("/refresh")] async fn refresh(nm: &State) -> Result, Debug> { diff --git a/server/src/graphql.rs b/server/src/graphql.rs index e5fd124..11534d6 100644 --- a/server/src/graphql.rs +++ b/server/src/graphql.rs @@ -63,7 +63,7 @@ pub struct Message { } #[derive(Debug)] -struct UnhandledContentType { +pub struct UnhandledContentType { text: String, } @@ -75,7 +75,7 @@ impl UnhandledContentType { } #[derive(Debug)] -struct PlainText { +pub struct PlainText { text: String, } @@ -87,7 +87,7 @@ impl PlainText { } #[derive(Debug)] -struct Html { +pub struct Html { html: String, }