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:
parent
bc4e0422c8
commit
e9b3985bcf
@ -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
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user