Skip to content

Commit d077b7a

Browse files
committed
fixup
1 parent 9baa0ae commit d077b7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustdoc/html/markdown.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result {
202202
size: text.len() as libc::size_t,
203203
asize: text.len() as libc::size_t,
204204
unit: 0,
205+
data_free: None,
206+
data_realloc: None,
207+
buffer_free: None,
205208
};
206209
let rendered = if lang.is_null() {
207210
false
@@ -322,9 +325,9 @@ pub fn render(w: &mut fmt::Formatter, s: &str, print_toc: bool) -> fmt::Result {
322325
open.with_c_str(|open| {
323326
close.with_c_str(|close| {
324327
unsafe {
325-
hoedown_buffer_put(ob, open, 2);
328+
hoedown_buffer_put(ob, open as *const libc::c_void, 2);
326329
hoedown_escape_html(ob, (*text).data, (*text).size, 0);
327-
hoedown_buffer_put(ob, close, 2);
330+
hoedown_buffer_put(ob, close as *const libc::c_void, 2);
328331
}
329332
})
330333
});

0 commit comments

Comments
 (0)