Fix warnings in tests (#2846)

This commit is contained in:
eupn
2019-05-25 23:13:09 +07:00
committed by Antioch Peverell
parent a2a350dac7
commit f17dd5fa44
4 changed files with 8 additions and 9 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ use grin_util as util;
use crate::api::*;
use hyper::{Body, Request, StatusCode};
use std::net::SocketAddr;
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use std::{thread, time};
@@ -27,7 +27,7 @@ pub struct CounterMiddleware {
impl CounterMiddleware {
fn new() -> CounterMiddleware {
CounterMiddleware {
counter: ATOMIC_USIZE_INIT,
counter: AtomicUsize::new(0),
}
}