Skip to content

Commit 17cf5e8

Browse files
author
Jorge Aparicio
committed
fmt_macros: fix fallout
1 parent 9d36a2d commit 17cf5e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libfmt_macros/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
html_playground_url = "http://play.rust-lang.org/")]
2525

2626
#![feature(macro_rules, globs, slicing_syntax)]
27+
#![feature(associated_types)]
2728

2829
pub use self::Piece::*;
2930
pub use self::Position::*;
@@ -142,7 +143,9 @@ pub struct Parser<'a> {
142143
pub errors: Vec<string::String>,
143144
}
144145

145-
impl<'a> Iterator<Piece<'a>> for Parser<'a> {
146+
impl<'a> Iterator for Parser<'a> {
147+
type Item = Piece<'a>;
148+
146149
fn next(&mut self) -> Option<Piece<'a>> {
147150
match self.cur.clone().next() {
148151
Some((pos, '{')) => {

0 commit comments

Comments
 (0)