@@ -361,8 +361,7 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result {
361
361
( * renderer) . codespan = Some ( codespan) ;
362
362
363
363
let document = hoedown_document_new ( renderer, HOEDOWN_EXTENSIONS , 16 ) ;
364
- hoedown_document_render ( document, ob, s. as_ptr ( ) ,
365
- s. len ( ) as libc:: size_t ) ;
364
+ hoedown_document_render ( document, ob, s. as_ptr ( ) , s. len ( ) ) ;
366
365
hoedown_document_free ( document) ;
367
366
368
367
hoedown_html_renderer_free ( renderer) ;
@@ -435,8 +434,7 @@ pub fn find_testable_code(doc: &str, tests: &mut ::test::Collector) {
435
434
= tests as * mut _ as * mut libc:: c_void ;
436
435
437
436
let document = hoedown_document_new ( renderer, HOEDOWN_EXTENSIONS , 16 ) ;
438
- hoedown_document_render ( document, ob, doc. as_ptr ( ) ,
439
- doc. len ( ) as libc:: size_t ) ;
437
+ hoedown_document_render ( document, ob, doc. as_ptr ( ) , doc. len ( ) ) ;
440
438
hoedown_document_free ( document) ;
441
439
442
440
hoedown_html_renderer_free ( renderer) ;
@@ -556,8 +554,7 @@ pub fn plain_summary_line(md: &str) -> String {
556
554
( * renderer) . normal_text = Some ( normal_text) ;
557
555
558
556
let document = hoedown_document_new ( renderer, HOEDOWN_EXTENSIONS , 16 ) ;
559
- hoedown_document_render ( document, ob, md. as_ptr ( ) ,
560
- md. len ( ) as libc:: size_t ) ;
557
+ hoedown_document_render ( document, ob, md. as_ptr ( ) , md. len ( ) ) ;
561
558
hoedown_document_free ( document) ;
562
559
let plain_slice = ( * ob) . as_bytes ( ) ;
563
560
let plain = match str:: from_utf8 ( plain_slice) {
0 commit comments