Skip to content

Commit

Permalink
Fix illegal syntax exposed by nightly change.
Browse files Browse the repository at this point in the history
Fix #103
  • Loading branch information
dpc committed Jan 19, 2017
1 parent d1bddb5 commit 5548f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_drain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl<D: Drain> Drain for Filter<D> {
pub struct MapError<D: Drain, E> {
drain: D,
// eliminated dynamic dispatch, after rust learns `-> impl Trait`
map_fn: Box<(Fn(D::Error) -> E) + 'static+ Send+Sync>,
map_fn: Box<Fn(D::Error) -> E + 'static+ Send+Sync>,
}

impl<D: Drain, E> MapError<D, E> {
Expand Down

0 comments on commit 5548f91

Please sign in to comment.