♻️ refactor: remove un-needed muts

main
_ 2021-04-18 08:33:07 -05:00
parent 146c91f2be
commit c75448fe2c
3 changed files with 5 additions and 5 deletions

View File

@ -325,7 +325,7 @@ mod tests {
#[test] #[test]
fn store () { fn store () {
let mut rt = Runtime::new ().unwrap (); let rt = Runtime::new ().unwrap ();
rt.block_on (async { rt.block_on (async {
let s = Store::new (vec! [ let s = Store::new (vec! [
(b"key_dir".to_vec (), StatusQuotas { (b"key_dir".to_vec (), StatusQuotas {
@ -420,7 +420,7 @@ mod tests {
fn perf () { fn perf () {
use std::time::Instant; use std::time::Instant;
let mut rt = Runtime::new ().unwrap (); let rt = Runtime::new ().unwrap ();
rt.block_on (async { rt.block_on (async {
let s = Store::new (vec! [ let s = Store::new (vec! [
(b"key_dir".to_vec (), StatusQuotas { (b"key_dir".to_vec (), StatusQuotas {
@ -457,7 +457,7 @@ mod tests {
fn perf_multi () { fn perf_multi () {
use std::time::Instant; use std::time::Instant;
let mut rt = Runtime::new ().unwrap (); let rt = Runtime::new ().unwrap ();
rt.block_on (async { rt.block_on (async {
let s = Store::new (vec! [ let s = Store::new (vec! [
(b"key_dir".to_vec (), StatusQuotas { (b"key_dir".to_vec (), StatusQuotas {

View File

@ -325,7 +325,7 @@ mod tests {
#[test] #[test]
fn auth () { 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 { rt.block_on (async move {
let base_case = TestCase { let base_case = TestCase {

View File

@ -28,7 +28,7 @@ fn test_pretty_print_last_seen () {
#[test] #[test]
fn scraper_endpoints () { 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 { rt.block_on (async {