Correctly mark unused variable

This commit is contained in:
Magnus Hovland Hoff 2018-10-03 18:12:27 +02:00
parent 748459483e
commit 6d1c9967aa

View file

@ -650,7 +650,7 @@ mod test {
let article = state.create_article(None, "Title".into(), "a\nb\nc\n".into(), None, Theme::Cyan).unwrap();
let first_edit = state.update_article(article.article_id, article.revision, article.title.clone(), "a\nx\nb\nc\n".into(), None, Theme::Blue).unwrap().unwrap();
let _first_edit = state.update_article(article.article_id, article.revision, article.title.clone(), "a\nx\nb\nc\n".into(), None, Theme::Blue).unwrap().unwrap();
let second_edit = state.update_article(article.article_id, article.revision, article.title.clone(), "a\nb\ny\nc\n".into(), None, Theme::Cyan).unwrap().unwrap();
assert_eq!(Theme::Blue, second_edit.theme);