@@ -2,7 +2,7 @@ use std::cmp::Ordering;
22use std:: fmt:: { self , Display , Write as _} ;
33use std:: iter;
44
5- use rinja :: Template ;
5+ use askama :: Template ;
66use rustc_abi:: VariantIdx ;
77use rustc_data_structures:: fx:: { FxHashMap , FxIndexSet } ;
88use rustc_hir as hir;
@@ -37,7 +37,7 @@ use crate::html::markdown::{HeadingOffset, MarkdownSummaryLine};
3737use crate :: html:: render:: { document_full, document_item_info} ;
3838use crate :: html:: url_parts_builder:: UrlPartsBuilder ;
3939
40- /// Generates a Rinja template struct for rendering items with common methods.
40+ /// Generates an Askama template struct for rendering items with common methods.
4141///
4242/// Usage:
4343/// ```ignore (illustrative)
@@ -301,7 +301,7 @@ fn toggle_close(mut w: impl fmt::Write) {
301301 w. write_str ( "</details>" ) . unwrap ( ) ;
302302}
303303
304- trait ItemTemplate < ' a , ' cx : ' a > : rinja :: Template + Display {
304+ trait ItemTemplate < ' a , ' cx : ' a > : askama :: Template + Display {
305305 fn item_and_cx ( & self ) -> ( & ' a clean:: Item , & ' a Context < ' cx > ) ;
306306}
307307
@@ -1867,7 +1867,7 @@ fn item_proc_macro(cx: &Context<'_>, it: &clean::Item, m: &clean::ProcMacro) ->
18671867 }
18681868 }
18691869 }
1870- Ok ( ( ) )
1870+ fmt :: Result :: Ok ( ( ) )
18711871 } ) ?;
18721872 write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) )
18731873 } )
@@ -1944,7 +1944,7 @@ fn item_constant(
19441944 }
19451945 }
19461946 }
1947- Ok ( ( ) )
1947+ Ok :: < ( ) , fmt :: Error > ( ( ) )
19481948 } ) ?;
19491949
19501950 write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) )
0 commit comments