diff --git a/proxmox-api-macro/src/parsing.rs b/proxmox-api-macro/src/parsing.rs index 2a8fac85..fd7e868d 100644 --- a/proxmox-api-macro/src/parsing.rs +++ b/proxmox-api-macro/src/parsing.rs @@ -96,10 +96,6 @@ impl Name { pub fn to_string(&self) -> String { self.0.clone() } - - pub fn into_string(self) -> String { - self.0 - } } impl From for Name { diff --git a/proxmox-api-macro/src/router_macro.rs b/proxmox-api-macro/src/router_macro.rs index 43bb1e6d..aa6c7131 100644 --- a/proxmox-api-macro/src/router_macro.rs +++ b/proxmox-api-macro/src/router_macro.rs @@ -148,8 +148,6 @@ impl Router { fn into_token_stream(self, name: Option) -> TokenStream { use std::iter::FromIterator; - use proc_macro2::{Group, Literal, Punct, Spacing}; - let mut out = quote! { ::proxmox::api::Router::new() }; @@ -277,7 +275,10 @@ fn parse_path_name(tokens: &mut TokenIter) -> Result { fn push_component(path: &mut Path, component: &mut String, span: &mut Option) { if !component.is_empty() { - path.push(Component::Name(LitStr::new(&component, span.take().unwrap()))); + path.push(Component::Name(LitStr::new( + &component, + span.take().unwrap(), + ))); component.clear(); } }; diff --git a/proxmox-api-macro/tests/basic.rs b/proxmox-api-macro/tests/basic.rs index 7051005f..ac10f39d 100644 --- a/proxmox-api-macro/tests/basic.rs +++ b/proxmox-api-macro/tests/basic.rs @@ -1,8 +1,6 @@ #![feature(async_await)] -use bytes::Bytes; -use failure::{bail, format_err, Error}; -use http::Response; +use failure::{bail, Error}; use serde_derive::{Deserialize, Serialize}; use serde_json::Value;