@@ -2,7 +2,7 @@ use std::cmp::Ordering;
2
2
use std:: fmt:: { self , Display , Write as _} ;
3
3
use std:: iter;
4
4
5
- use rinja :: Template ;
5
+ use askama :: Template ;
6
6
use rustc_abi:: VariantIdx ;
7
7
use rustc_data_structures:: fx:: { FxHashMap , FxIndexSet } ;
8
8
use rustc_hir as hir;
@@ -37,7 +37,7 @@ use crate::html::markdown::{HeadingOffset, MarkdownSummaryLine};
37
37
use crate :: html:: render:: { document_full, document_item_info} ;
38
38
use crate :: html:: url_parts_builder:: UrlPartsBuilder ;
39
39
40
- /// Generates a Rinja template struct for rendering items with common methods.
40
+ /// Generates an Askama template struct for rendering items with common methods.
41
41
///
42
42
/// Usage:
43
43
/// ```ignore (illustrative)
@@ -301,7 +301,7 @@ fn toggle_close(mut w: impl fmt::Write) {
301
301
w. write_str ( "</details>" ) . unwrap ( ) ;
302
302
}
303
303
304
- trait ItemTemplate < ' a , ' cx : ' a > : rinja :: Template + Display {
304
+ trait ItemTemplate < ' a , ' cx : ' a > : askama :: Template + Display {
305
305
fn item_and_cx ( & self ) -> ( & ' a clean:: Item , & ' a Context < ' cx > ) ;
306
306
}
307
307
@@ -1867,7 +1867,7 @@ fn item_proc_macro(cx: &Context<'_>, it: &clean::Item, m: &clean::ProcMacro) ->
1867
1867
}
1868
1868
}
1869
1869
}
1870
- Ok ( ( ) )
1870
+ fmt :: Result :: Ok ( ( ) )
1871
1871
} ) ?;
1872
1872
write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) )
1873
1873
} )
@@ -1944,7 +1944,7 @@ fn item_constant(
1944
1944
}
1945
1945
}
1946
1946
}
1947
- Ok ( ( ) )
1947
+ Ok :: < ( ) , fmt :: Error > ( ( ) )
1948
1948
} ) ?;
1949
1949
1950
1950
write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) )
0 commit comments