fix tests, remove some warnings
This commit is contained in:
parent
2fa83c0503
commit
e8782eeb63
22 changed files with 18 additions and 44 deletions
|
|
@ -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(", ") + "]"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue