From 0b7890de266fe304fd1438bd5386c64dca9e4801 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 23 Dec 2020 16:18:07 -0800 Subject: lint: remove 'mut' on tokio runtimes This is a tokio v1.0 change --- tests/parse_es_requests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/parse_es_requests.rs b/tests/parse_es_requests.rs index e00b12f..53a9889 100644 --- a/tests/parse_es_requests.rs +++ b/tests/parse_es_requests.rs @@ -55,7 +55,7 @@ fn filter_search_requests() { let file_paths = fs::read_dir("tests/files/search").unwrap(); let mut config = ProxyConfig::default(); config.unsafe_all_indices = Some(true); - let mut rt = tokio::runtime::Runtime::new().unwrap(); + let rt = tokio::runtime::Runtime::new().unwrap(); for path in file_paths { let path = path.unwrap().path(); @@ -73,7 +73,7 @@ fn filter_scroll_requests() { let file_paths = fs::read_dir("tests/files/scroll").unwrap(); let mut config = ProxyConfig::default(); config.unsafe_all_indices = Some(true); - let mut rt = tokio::runtime::Runtime::new().unwrap(); + let rt = tokio::runtime::Runtime::new().unwrap(); for path in file_paths { let path = path.unwrap().path(); @@ -91,7 +91,7 @@ fn filter_other_requests() { let file_paths = fs::read_dir("tests/files/other").unwrap(); let mut config = ProxyConfig::default(); config.unsafe_all_indices = Some(true); - let mut rt = tokio::runtime::Runtime::new().unwrap(); + let rt = tokio::runtime::Runtime::new().unwrap(); for path in file_paths { let path = path.unwrap().path(); @@ -109,7 +109,7 @@ fn filter_failures() { let file_paths = fs::read_dir("tests/files/search_fail").unwrap(); let mut config = ProxyConfig::default(); config.unsafe_all_indices = Some(true); - let mut rt = tokio::runtime::Runtime::new().unwrap(); + let rt = tokio::runtime::Runtime::new().unwrap(); for path in file_paths { let path = path.unwrap().path(); -- cgit v1.2.3