1
0
mirror of https://github.com/actix/examples synced 2025-01-22 22:05:57 +01:00

Merge pull request #129 from blackjune/patch-1

Fix bug in state type
This commit is contained in:
Nikolay Kim 2019-05-25 09:20:40 -07:00 committed by GitHub
commit 6c7b068a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ fn main() -> io::Result<()> {
std::env::set_var("RUST_LOG", "actix_web=info");
env_logger::init();
let counter = Arc::new(Mutex::new(0));
let counter = Arc::new(Mutex::new(0usize));
//move is necessary to give closure below ownership of counter
HttpServer::new(move || {