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
|
||||
- env:
|
||||
- TASK=check
|
||||
- RUSTFLAGS="-A dead-code -A unused-variables"
|
||||
language: rust
|
||||
script: cd examples; cargo check; cargo test
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// <streaming>
|
||||
use actix_web::{error, web, Error, HttpResponse};
|
||||
use futures::{Future, Stream, StreamExt};
|
||||
use actix_web::{web, Error, HttpResponse};
|
||||
use futures::StreamExt;
|
||||
|
||||
async fn index(mut body: web::Payload) -> Result<HttpResponse, Error> {
|
||||
let mut bytes = web::BytesMut::new();
|
||||
|
@ -1,5 +1,5 @@
|
||||
// <chunked>
|
||||
use actix_web::{web, HttpRequest, HttpResponse, Error};
|
||||
use actix_web::{HttpRequest, HttpResponse, Error};
|
||||
use bytes::Bytes;
|
||||
use futures::future::ok;
|
||||
use futures::stream::once;
|
||||
|
Loading…
x
Reference in New Issue
Block a user