forked from Proxmox/proxmox
cleanup
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
1993460d4a
commit
2b577c9c17
@ -96,10 +96,6 @@ impl Name {
|
|||||||
pub fn to_string(&self) -> String {
|
pub fn to_string(&self) -> String {
|
||||||
self.0.clone()
|
self.0.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn into_string(self) -> String {
|
|
||||||
self.0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Ident> for Name {
|
impl From<Ident> for Name {
|
||||||
|
@ -148,8 +148,6 @@ impl Router {
|
|||||||
fn into_token_stream(self, name: Option<Ident>) -> TokenStream {
|
fn into_token_stream(self, name: Option<Ident>) -> TokenStream {
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
|
|
||||||
use proc_macro2::{Group, Literal, Punct, Spacing};
|
|
||||||
|
|
||||||
let mut out = quote! {
|
let mut out = quote! {
|
||||||
::proxmox::api::Router::new()
|
::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>) {
|
fn push_component(path: &mut Path, component: &mut String, span: &mut Option<Span>) {
|
||||||
if !component.is_empty() {
|
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();
|
component.clear();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
#![feature(async_await)]
|
#![feature(async_await)]
|
||||||
|
|
||||||
use bytes::Bytes;
|
use failure::{bail, Error};
|
||||||
use failure::{bail, format_err, Error};
|
|
||||||
use http::Response;
|
|
||||||
use serde_derive::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user