File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -247,10 +247,6 @@ pub mod filters {
247247 }
248248 }
249249
250- pub fn unwrap < T : fmt:: Display > ( value : & Option < T > ) -> rinja:: Result < & T > {
251- Ok ( value. as_ref ( ) . expect ( "`unwrap` filter failed" ) )
252- }
253-
254250 pub fn split_first < ' a > ( value : & ' a str , pat : & str ) -> rinja:: Result < Option < & ' a str > > {
255251 Ok ( value. split ( pat) . next ( ) )
256252 }
Original file line number Diff line number Diff line change 11{%- import "macros.html" as macros -%}
2- < link rel ="stylesheet " href ="/-/static/{{rustdoc_css_file| unwrap}}?{{ crate::BUILD_VERSION|slugify }} " media ="all " />
2+ < link rel ="stylesheet " href ="/-/static/{{rustdoc_css_file.as_ref(). unwrap() }}?{{ crate::BUILD_VERSION|slugify }} " media ="all " />
33
44 < link rel ="search " href ="/-/static/opensearch.xml " type ="application/opensearchdescription+xml " title ="Docs.rs " />
55
You can’t perform that action at this time.
0 commit comments