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