aboutsummaryrefslogtreecommitdiffstats
path: root/components/dom_struct
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-03-29 16:25:53 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-09 21:43:25 +0200
commit3d6614e3145f0955be55bf5656aa805fedef639c (patch)
treec32da06bff1406c3db510a64d0f873e575dc68fb /components/dom_struct
parentcb754b262747e7cab794411df55588f0f0b30b5e (diff)
downloadservo-3d6614e3145f0955be55bf5656aa805fedef639c.tar.gz
servo-3d6614e3145f0955be55bf5656aa805fedef639c.zip
Upgrade to rustc 1.27.0-nightly (056f589fb 2018-04-07)
Diffstat (limited to 'components/dom_struct')
-rw-r--r--components/dom_struct/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/components/dom_struct/lib.rs b/components/dom_struct/lib.rs
index 41cf4a67527..86c7134a78f 100644
--- a/components/dom_struct/lib.rs
+++ b/components/dom_struct/lib.rs
@@ -7,7 +7,6 @@
extern crate proc_macro;
use proc_macro::{TokenStream, quote};
-use std::iter;
#[proc_macro_attribute]
pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
@@ -21,7 +20,7 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
};
// Work around https://github.com/rust-lang/rust/issues/46489
- let attributes = attributes.to_string().parse().unwrap();
+ let attributes: TokenStream = attributes.to_string().parse().unwrap();
- iter::once(attributes).chain(iter::once(input)).collect()
+ attributes.into_iter().chain(input.into_iter()).collect()
}