@@ -530,7 +530,7 @@ extern {
530
530
fn hoedown_buffer_new ( unit : libc:: size_t ) -> * mut hoedown_buffer ;
531
531
fn hoedown_buffer_puts ( b : * mut hoedown_buffer , c : * const libc:: c_char ) ;
532
532
fn hoedown_buffer_free ( b : * mut hoedown_buffer ) ;
533
- fn hoedown_buffer_put ( b : * mut hoedown_buffer , c : * const libc :: c_char , len : libc:: size_t ) ;
533
+ fn hoedown_buffer_put ( b : * mut hoedown_buffer , c : * const u8 , len : libc:: size_t ) ;
534
534
}
535
535
536
536
impl hoedown_buffer {
@@ -620,7 +620,7 @@ pub fn render(w: &mut fmt::Formatter,
620
620
Some ( "rust-example-rendered" ) ,
621
621
None ,
622
622
playground_button. as_ref ( ) . map ( String :: as_str) ) ) ;
623
- hoedown_buffer_put ( ob, s. as_ptr ( ) as * const libc :: c_char , s. len ( ) ) ;
623
+ hoedown_buffer_put ( ob, s. as_ptr ( ) , s. len ( ) ) ;
624
624
} )
625
625
}
626
626
}
@@ -680,7 +680,7 @@ pub fn render(w: &mut fmt::Formatter,
680
680
<a href='#{id}'>{sec}{}</a></h{lvl}>",
681
681
s, lvl = level, id = id, sec = sec) ;
682
682
683
- unsafe { hoedown_buffer_put ( ob, text. as_ptr ( ) as * const libc :: c_char , text. len ( ) ) ; }
683
+ unsafe { hoedown_buffer_put ( ob, text. as_ptr ( ) , text. len ( ) ) ; }
684
684
}
685
685
686
686
extern fn codespan (
@@ -697,9 +697,9 @@ pub fn render(w: &mut fmt::Formatter,
697
697
collapse_whitespace ( s)
698
698
} ;
699
699
700
- let content = format ! ( "<code>{}</code>" , Escape ( & content) ) . replace ( " \0 " , " \\ 0" ) ;
700
+ let content = format ! ( "<code>{}</code>" , Escape ( & content) ) ;
701
701
unsafe {
702
- hoedown_buffer_put ( ob, content. as_ptr ( ) as * const libc :: c_char , content. len ( ) ) ;
702
+ hoedown_buffer_put ( ob, content. as_ptr ( ) , content. len ( ) ) ;
703
703
}
704
704
// Return anything except 0, which would mean "also print the code span verbatim".
705
705
1
0 commit comments