1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

Fix/suppress warnings

This commit is contained in:
Yuki Okushi
2020-04-03 16:14:30 +09:00
parent 0f1568bd3c
commit 8f1c0a85cf
19 changed files with 29 additions and 32 deletions

View File

@ -54,6 +54,7 @@ async fn main() -> io::Result<()> {
env_logger::init();
// Create some global state prior to building the server
#[allow(clippy::mutex_atomic)] // it's intentional.
let counter1 = web::Data::new(Mutex::new(0usize));
let counter3 = web::Data::new(AtomicUsize::new(0usize));