Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-06-08 10:55:19 +02:00
parent 1993460d4a
commit 2b577c9c17
3 changed files with 5 additions and 10 deletions

View File

@ -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<Ident> for Name {

View File

@ -148,8 +148,6 @@ impl Router {
fn into_token_stream(self, name: Option<Ident>) -> 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<Path, Error> {
fn push_component(path: &mut Path, component: &mut String, span: &mut Option<Span>) {
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();
}
};

View File

@ -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;