fix tests, remove some warnings

This commit is contained in:
Huon Wilson 2013-06-11 02:34:14 +10:00
parent 2fa83c0503
commit e8782eeb63
22 changed files with 18 additions and 44 deletions

View file

@ -14,7 +14,8 @@
extern mod std;
use std::{str, int, vec};
use std::str::StrVector;
use std::{int, vec};
trait to_str {
fn to_str(&self) -> ~str;
@ -26,7 +27,7 @@ impl to_str for int {
impl<T:to_str> to_str for ~[T] {
fn to_str(&self) -> ~str {
~"[" + self.map(|e| e.to_str()).connect(", ") + "]"
~"[" + vec::map(*self, |e| e.to_str()).connect(", ") + "]"
}
}