summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-12-23 16:18:07 -0800
committerBryan Newbold <bnewbold@archive.org>2020-12-23 16:18:10 -0800
commit0b7890de266fe304fd1438bd5386c64dca9e4801 (patch)
tree14f9c1a9a395436e95f2950b6815c977de7c193a /tests
parentbc923738c149767d6804a87555cdf0ce2a8fff4f (diff)
downloades-public-proxy-0b7890de266fe304fd1438bd5386c64dca9e4801.tar.gz
es-public-proxy-0b7890de266fe304fd1438bd5386c64dca9e4801.zip
lint: remove 'mut' on tokio runtimes
This is a tokio v1.0 change
Diffstat (limited to 'tests')
-rw-r--r--tests/parse_es_requests.rs8
1 files 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();