From 55f70367b50b00adeeeadb8a539044e073b76df1 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 25 Nov 2022 14:32:25 -0500 Subject: [PATCH] Clear warnings in library --- integrations/actix/src/lib.rs | 2 +- leptos_macro/src/server.rs | 1 - leptos_server/src/lib.rs | 6 +----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/integrations/actix/src/lib.rs b/integrations/actix/src/lib.rs index b97a4b4e5..d4ef74907 100644 --- a/integrations/actix/src/lib.rs +++ b/integrations/actix/src/lib.rs @@ -1,4 +1,4 @@ -use actix_web::{body::MessageBody, web::Bytes, *}; +use actix_web::{web::Bytes, *}; use futures::StreamExt; use leptos::*; use leptos_meta::*; diff --git a/leptos_macro/src/server.rs b/leptos_macro/src/server.rs index 1f0ce5fc5..7ecfb7d24 100644 --- a/leptos_macro/src/server.rs +++ b/leptos_macro/src/server.rs @@ -2,7 +2,6 @@ use cfg_if::cfg_if; use leptos_server::Encoding; use proc_macro2::{Literal, TokenStream as TokenStream2}; use quote::quote; -use std::str::FromStr; use syn::{ parse::{Parse, ParseStream}, punctuated::Punctuated, diff --git a/leptos_server/src/lib.rs b/leptos_server/src/lib.rs index 89aea98b8..ee0b11ffa 100644 --- a/leptos_server/src/lib.rs +++ b/leptos_server/src/lib.rs @@ -70,11 +70,7 @@ pub use form_urlencoded; use leptos_reactive::*; -use proc_macro2::{ - Literal, Punct, - Spacing::{Alone, Joint}, - TokenStream, -}; +use proc_macro2::{Literal, TokenStream}; use quote::TokenStreamExt; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use std::{future::Future, pin::Pin, str::FromStr};