libimagerror: Eliminate unused imports
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
This commit is contained in:
parent
014a40c9df
commit
6578abdf3d
1 changed files with 4 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;
|
||||
|
|
Loading…
Reference in a new issue