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:
Jacob Hoffman-Andrews
2020-09-12 18:42:15 -07:00
committed by GitHub
parent 50c19c5484
commit 6a88c2c8bf
6 changed files with 22 additions and 47 deletions

View File

@@ -1,3 +1,4 @@
use std::fmt;
use std::io::{Cursor, Error as IoError, ErrorKind, Read, Result as IoResult};
use std::str::FromStr;
use std::time::Instant;
@@ -65,8 +66,8 @@ struct ResponseStatusIndex {
response_code: usize,
}
impl ::std::fmt::Debug for Response {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::result::Result<(), ::std::fmt::Error> {
impl fmt::Debug for Response {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(
f,
"Response[status: {}, status_text: {}]",