Merge pull request #581 from impo/libimagerror/deny-warnings

libimagerror: Deny warnings
This commit is contained in:
Matthias Beyer 2016-07-29 10:25:19 +02:00 committed by GitHub
commit 59afb5b9d0
2 changed files with 18 additions and 4 deletions

View file

@ -331,7 +331,7 @@ mod test {
#[test]
fn test_error_kind_mapping() {
use std::io::{Error, ErrorKind};
use self::error::{OkOrErr, MapErrInto};
use self::error::MapErrInto;
use self::error::TestErrorKind;
let err : Result<(), _> = Err(Error::new(ErrorKind::Other, ""));
@ -349,7 +349,7 @@ mod test {
#[test]
fn test_error_kind_double_mapping() {
use std::io::{Error, ErrorKind};
use self::error::{OkOrErr, MapErrInto};
use self::error::MapErrInto;
use self::error::TestErrorKind;
let err : Result<(), _> = Err(Error::new(ErrorKind::Other, ""));
@ -373,7 +373,7 @@ mod test {
#[test]
fn test_error_option_good() {
use self::error::{OkOrErr, MapErrInto};
use self::error::OkOrErr;
use self::error::TestErrorKind;
let something = Some(1);
@ -385,7 +385,7 @@ mod test {
#[test]
fn test_error_option_bad() {
use self::error::{OkOrErr, MapErrInto};
use self::error::OkOrErr;
use self::error::TestErrorKind;
let something : Option<i32> = None;

View file

@ -1,3 +1,17 @@
#![deny(
non_camel_case_types,
non_snake_case,
path_statements,
trivial_numeric_casts,
unstable_features,
unused_allocation,
unused_import_braces,
unused_imports,
unused_mut,
unused_qualifications,
while_true,
)]
#[macro_use] extern crate log;
extern crate ansi_term;