Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
Fixing compile error, but still not allow mutate single expression or
statements
  • Loading branch information
gnieto committed Apr 4, 2018
1 parent 1c6b0c1 commit 15b2e37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pub fn mutator(cx: &mut ExtCtxt, _span: Span, _mi: &MetaItem, a: Annotatable) ->
Annotatable::ImplItem(i) => Annotatable::ImplItem(i.map(|i| {
p.fold_impl_item(i).expect_one("expected exactly one item")
})),
stmt_or_expr => stmt_or_expr,
};
p.m.mutations.flush().unwrap();
MUTATION_COUNT.store(p.m.current_count, SeqCst);
Expand Down

0 comments on commit 15b2e37

Please sign in to comment.