From c75448fe2c5c8d2b8473ffc9d43debc3debd01d4 Mon Sep 17 00:00:00 2001 From: _ <_@_> Date: Sun, 18 Apr 2021 08:33:07 -0500 Subject: [PATCH] :recycle: refactor: remove un-needed muts --- crates/ptth_kv/src/main.rs | 6 +++--- crates/ptth_relay/src/scraper_api.rs | 2 +- crates/ptth_relay/src/tests.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ptth_kv/src/main.rs b/crates/ptth_kv/src/main.rs index 571303b..c902f59 100644 --- a/crates/ptth_kv/src/main.rs +++ b/crates/ptth_kv/src/main.rs @@ -325,7 +325,7 @@ mod tests { #[test] fn store () { - let mut rt = Runtime::new ().unwrap (); + let rt = Runtime::new ().unwrap (); rt.block_on (async { let s = Store::new (vec! [ (b"key_dir".to_vec (), StatusQuotas { @@ -420,7 +420,7 @@ mod tests { fn perf () { use std::time::Instant; - let mut rt = Runtime::new ().unwrap (); + let rt = Runtime::new ().unwrap (); rt.block_on (async { let s = Store::new (vec! [ (b"key_dir".to_vec (), StatusQuotas { @@ -457,7 +457,7 @@ mod tests { fn perf_multi () { use std::time::Instant; - let mut rt = Runtime::new ().unwrap (); + let rt = Runtime::new ().unwrap (); rt.block_on (async { let s = Store::new (vec! [ (b"key_dir".to_vec (), StatusQuotas { diff --git a/crates/ptth_relay/src/scraper_api.rs b/crates/ptth_relay/src/scraper_api.rs index ffc94b9..1aaed62 100644 --- a/crates/ptth_relay/src/scraper_api.rs +++ b/crates/ptth_relay/src/scraper_api.rs @@ -325,7 +325,7 @@ mod tests { #[test] fn auth () { - let mut rt = Runtime::new ().expect ("Can't create runtime for testing"); + let rt = Runtime::new ().expect ("Can't create runtime for testing"); rt.block_on (async move { let base_case = TestCase { diff --git a/crates/ptth_relay/src/tests.rs b/crates/ptth_relay/src/tests.rs index b40cc1a..11d685f 100644 --- a/crates/ptth_relay/src/tests.rs +++ b/crates/ptth_relay/src/tests.rs @@ -28,7 +28,7 @@ fn test_pretty_print_last_seen () { #[test] fn scraper_endpoints () { - let mut rt = Runtime::new ().expect ("Can't create runtime for testing"); + let rt = Runtime::new ().expect ("Can't create runtime for testing"); rt.block_on (async {