1
0
mirror of https://github.com/actix/actix-website synced 2025-01-22 16:15:56 +01:00

Suppress some warnings on CI (#143)

* Suppress some warnings on CI

* Remove unused imports
This commit is contained in:
Yuki Okushi 2020-01-23 10:17:13 +09:00 committed by GitHub
parent bc4e0422c8
commit e9b3985bcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -24,6 +24,7 @@ matrix:
script: ./hugo script: ./hugo
- env: - env:
- TASK=check - TASK=check
- RUSTFLAGS="-A dead-code -A unused-variables"
language: rust language: rust
script: cd examples; cargo check; cargo test script: cd examples; cargo check; cargo test

View File

@ -1,6 +1,6 @@
// <streaming> // <streaming>
use actix_web::{error, web, Error, HttpResponse}; use actix_web::{web, Error, HttpResponse};
use futures::{Future, Stream, StreamExt}; use futures::StreamExt;
async fn index(mut body: web::Payload) -> Result<HttpResponse, Error> { async fn index(mut body: web::Payload) -> Result<HttpResponse, Error> {
let mut bytes = web::BytesMut::new(); let mut bytes = web::BytesMut::new();

View File

@ -1,5 +1,5 @@
// <chunked> // <chunked>
use actix_web::{web, HttpRequest, HttpResponse, Error}; use actix_web::{HttpRequest, HttpResponse, Error};
use bytes::Bytes; use bytes::Bytes;
use futures::future::ok; use futures::future::ok;
use futures::stream::once; use futures::stream::once;