1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +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

@ -1,8 +1,6 @@
use actix_web::{web, Error as AWError};
use failure::Error;
use futures::{Future, TryFutureExt};
use r2d2;
use r2d2_sqlite;
use rusqlite::{Statement, NO_PARAMS};
use serde::{Deserialize, Serialize};
use std::{thread::sleep, time::Duration};

View File

@ -22,6 +22,7 @@ mod db;
use db::{Pool, Queries};
/// Version 1: Calls 4 queries in sequential order, as an asynchronous handler
#[allow(clippy::eval_order_dependence)] // it's FP?
async fn asyncio_weather(db: web::Data<Pool>) -> Result<HttpResponse, AWError> {
let result = vec![
db::execute(&db, Queries::GetTopTenHottestYears).await?,