Merge pull request #581 from impo/libimagerror/deny-warnings
libimagerror: Deny warnings
This commit is contained in:
commit
59afb5b9d0
2 changed files with 18 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue