Format with rustfmt 0.4.2
diff --git a/src/unstable.rs b/src/unstable.rs
index d913df4..85698aa 100644
--- a/src/unstable.rs
+++ b/src/unstable.rs
@@ -82,8 +82,7 @@
impl iter::FromIterator<TokenTree> for TokenStream {
fn from_iter<I: IntoIterator<Item = TokenTree>>(streams: I) -> Self {
- let streams = streams.into_iter().map(TokenStream::from)
- .flat_map(|t| t.0);
+ let streams = streams.into_iter().map(TokenStream::from).flat_map(|t| t.0);
TokenStream(streams.collect::<proc_macro::TokenStream>())
}
}
@@ -138,16 +137,8 @@
o.set_span(::Span::_new(Span(tt.span())));
o.into()
}
- proc_macro::TokenTree::Term(s) => {
- ::Term::_new(Term {
- term: s,
- }).into()
- }
- proc_macro::TokenTree::Literal(l) => {
- ::Literal::_new(Literal {
- lit: l,
- }).into()
- }
+ proc_macro::TokenTree::Term(s) => ::Term::_new(Term { term: s }).into(),
+ proc_macro::TokenTree::Literal(l) => ::Literal::_new(Literal { lit: l }).into(),
})
}
@@ -322,9 +313,7 @@
impl Literal {
fn _new(lit: proc_macro::Literal) -> Literal {
- Literal {
- lit,
- }
+ Literal { lit }
}
suffixed_numbers! {
@@ -364,7 +353,6 @@
Literal::_new(proc_macro::Literal::f64_unsuffixed(f))
}
-
pub fn string(t: &str) -> Literal {
Literal::_new(proc_macro::Literal::string(t))
}