♻️ refactor: remove un-needed muts
parent
146c91f2be
commit
c75448fe2c
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue