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 {
247
247
}
248
248
}
249
249
250
- pub fn unwrap < T : fmt:: Display > ( value : & Option < T > ) -> rinja:: Result < & T > {
251
- Ok ( value. as_ref ( ) . expect ( "`unwrap` filter failed" ) )
252
- }
253
-
254
250
pub fn split_first < ' a > ( value : & ' a str , pat : & str ) -> rinja:: Result < Option < & ' a str > > {
255
251
Ok ( value. split ( pat) . next ( ) )
256
252
}
Original file line number Diff line number Diff line change 1
1
{%- 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 " />
3
3
4
4
< link rel ="search " href ="/-/static/opensearch.xml " type ="application/opensearchdescription+xml " title ="Docs.rs " />
5
5
You can’t perform that action at this time.
0 commit comments