@@ -133,7 +133,7 @@ pub fn render(w: &mut io::Writer, s: &str, print_toc: bool) -> fmt::Result {
133133 slice:: raw:: buf_as_slice ( ( * text) . data , ( * text) . size as uint , |text| {
134134 let text = str:: from_utf8 ( text) . unwrap ( ) ;
135135 let mut lines = text. lines ( ) . filter ( |l| stripped_filtered_line ( * l) . is_none ( ) ) ;
136- let text = lines. collect :: < ~ [ & str ] > ( ) . connect ( "\n " ) ;
136+ let text = lines. collect :: < Vec < & str > > ( ) . connect ( "\n " ) ;
137137
138138 let buf = buf {
139139 data : text. as_bytes ( ) . as_ptr ( ) ,
@@ -186,7 +186,7 @@ pub fn render(w: &mut io::Writer, s: &str, print_toc: bool) -> fmt::Result {
186186 Some ( s) => s. to_lower ( ) . into_str ( ) ,
187187 None => s. to_owned ( )
188188 }
189- } ) . collect :: < ~ [ ~ str ] > ( ) . connect ( "-" ) ;
189+ } ) . collect :: < Vec < ~ str > > ( ) . connect ( "-" ) ;
190190
191191 let opaque = unsafe { & mut * ( opaque as * mut my_opaque ) } ;
192192
@@ -285,7 +285,7 @@ pub fn find_testable_code(doc: &str, tests: &mut ::test::Collector) {
285285 let tests = & mut * ( opaque as * mut :: test:: Collector ) ;
286286 let text = str:: from_utf8 ( text) . unwrap ( ) ;
287287 let mut lines = text. lines ( ) . map ( |l| stripped_filtered_line ( l) . unwrap_or ( l) ) ;
288- let text = lines. collect :: < ~ [ & str ] > ( ) . connect ( "\n " ) ;
288+ let text = lines. collect :: < Vec < & str > > ( ) . connect ( "\n " ) ;
289289 tests. add_test ( text, should_fail, no_run, ignore) ;
290290 } )
291291 }
0 commit comments