Continue updating for latest rust

Fixed tests, however cannot link bench tests for some reason
This commit is contained in:
cyderize
2015-01-10 19:15:46 +11:00
parent 122e94c8a6
commit cc7fa15b04
6 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
use std::fmt::{self, Show};
use std::fmt;
use std::str::{FromStr, from_utf8};
use std::ops::{Deref, DerefMut};
use serialize::base64::{ToBase64, FromBase64, Standard, Config, Newline};
@@ -70,7 +70,7 @@ impl Scheme for String {
}
fn fmt_scheme(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.fmt(f)
write!(f, "{}", self)
}
}
@@ -98,12 +98,12 @@ impl Scheme for Basic {
if let Some(ref pass) = self.password {
text.push_str(&pass[]);
}
text.as_bytes().to_base64(Config {
write!(f, "{}", text.as_bytes().to_base64(Config {
char_set: Standard,
newline: Newline::CRLF,
pad: true,
line_length: None
}).fmt(f)
}))
}
}