From 6d1c9967aa4bf8769b70fe980775f8b3e50f3430 Mon Sep 17 00:00:00 2001 From: Magnus Hovland Hoff Date: Wed, 3 Oct 2018 18:12:27 +0200 Subject: [PATCH] Correctly mark unused variable --- src/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 2700a25..6fad44e 100644 --- a/src/state.rs +++ b/src/state.rs @@ -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);