chore: change default lint level to warning and deny warnings in CI (#1416)

This commit is contained in:
Taiki Endo
2019-08-10 00:07:57 +09:00
committed by GitHub
parent 18833a8e67
commit 73102760cf
126 changed files with 128 additions and 145 deletions
+1 -1
View File
@@ -25,7 +25,7 @@
//! messages.
#![feature(async_await)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
use futures::{Poll, SinkExt, Stream, StreamExt};
use std::{collections::HashMap, env, error::Error, io, net::SocketAddr, pin::Pin, task::Context};
+1 -1
View File
@@ -14,7 +14,7 @@
//! this repository! Many of them recommend running this as a simple "hook up
//! stdin/stdout to a server" to get up and running.
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
#![feature(async_await)]
use futures::{SinkExt, Stream};
+1 -1
View File
@@ -11,7 +11,7 @@
//! Each line you type in to the `nc` terminal should be echo'd back to you!
#![feature(async_await)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
use std::error::Error;
use std::net::SocketAddr;
+1 -1
View File
@@ -20,7 +20,7 @@
//! should be able to see them all make progress simultaneously.
#![feature(async_await)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
use tokio;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
+1 -1
View File
@@ -11,7 +11,7 @@
//!
//! cargo run --example hello_world
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
#![feature(async_await)]
use tokio;
+1 -1
View File
@@ -20,7 +20,7 @@
//! This final terminal will connect to our proxy, which will in turn connect to
//! the echo server, and you'll be able to see data flowing between them.
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
#![feature(async_await)]
use futures::{future::try_join, FutureExt, StreamExt};
+1 -1
View File
@@ -40,7 +40,7 @@
//! returning the previous value, if any.
#![feature(async_await)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
use std::collections::HashMap;
use std::env;
+1 -1
View File
@@ -11,7 +11,7 @@
//! respectively. By default this will run I/O on all the cores your system has
//! available, and it doesn't support HTTP request bodies.
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
#![feature(async_await)]
use bytes::BytesMut;
+1 -1
View File
@@ -27,7 +27,7 @@
//! connection the server needs to be run first, otherwise the client will block forever.
#![feature(async_await)]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
use std::env;
use std::error::Error;
+1 -1
View File
@@ -8,7 +8,7 @@
#![feature(async_await)]
#![cfg(feature = "rt-full")]
#![deny(warnings, rust_2018_idioms)]
#![warn(rust_2018_idioms)]
use tokio::io;
use tokio::net::UdpSocket;