Clean up unused code and long imports. (#137)
This removes some commented out methods, and also changes instances of ::std::foo to use a more idiomatic import path.
This commit is contained in:
committed by
GitHub
parent
50c19c5484
commit
6a88c2c8bf
@@ -1,3 +1,4 @@
|
||||
use std::fmt;
|
||||
use std::io::{
|
||||
BufRead, BufReader, Cursor, Error as IoError, ErrorKind, Read, Result as IoResult, Write,
|
||||
};
|
||||
@@ -102,8 +103,8 @@ pub(crate) fn io_err_timeout(error: String) -> IoError {
|
||||
IoError::new(ErrorKind::TimedOut, error)
|
||||
}
|
||||
|
||||
impl ::std::fmt::Debug for Stream {
|
||||
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::result::Result<(), ::std::fmt::Error> {
|
||||
impl fmt::Debug for Stream {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(
|
||||
f,
|
||||
"Stream[{}]",
|
||||
|
||||
Reference in New Issue
Block a user