We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5db40f7 commit d9c1a17Copy full SHA for d9c1a17
src/librustdoc/html/render.rs
@@ -421,7 +421,7 @@ thread_local!(pub static CURRENT_LOCATION_KEY: RefCell<Vec<String>> =
421
thread_local!(pub static USED_ID_MAP: RefCell<FxHashMap<String, usize>> =
422
RefCell::new(init_ids()));
423
424
-pub fn render_text<F: FnMut(RenderType) -> String>(mut render: F) -> (String, String) {
+pub fn render_text<T, F: FnMut(RenderType) -> T>(mut render: F) -> (T, T) {
425
// Save the state of USED_ID_MAP so it only gets updated once even
426
// though we're rendering twice.
427
let orig_used_id_map = USED_ID_MAP.with(|map| map.borrow().clone());
0 commit comments