From bcf63b6e838420d8b097e3b8b5bc08871793ea55 Mon Sep 17 00:00:00 2001 From: maxstanley Date: Fri, 22 Oct 2021 10:59:11 +0100 Subject: [PATCH] Fix Diesel Database example (#234) --- examples/databases/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/databases/src/main.rs b/examples/databases/src/main.rs index 5aee36f..a3b26fa 100644 --- a/examples/databases/src/main.rs +++ b/examples/databases/src/main.rs @@ -36,7 +36,7 @@ async fn main() -> io::Result<()> { // Start HTTP server HttpServer::new(move || { - App::new::data(pool.clone()) + App::new().data(pool.clone()) .resource("/{name}", web::get().to(index)) }) .bind("127.0.0.1:8080")?