File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 159
159
{%- for dependency in deps -%}
160
160
{%- if let serde_json::Value::Array(dep) = dependency -%}
161
161
< li class ="pure-menu-item ">
162
- {%- set first = dep[0].as_str().unwrap( ) -%}
163
- {%- set second = dep[1].as_str().unwrap( ) -%}
162
+ {%- set first = dep[0].as_str().expect("dep[0] not a string in dependency" ) -%}
163
+ {%- set second = dep[1].as_str().expect("dep[1] not a string in dependency" ) -%}
164
164
< a href ="{{ link_prefix|safe }}/{{ first|safe }}/{{ second|safe }} " class ="pure-menu-link ">
165
165
{{ first|safe }} {{ second|safe }}
166
166
{% if let Some(serde_json::Value::String(third)) = dep.get(2) %}
Original file line number Diff line number Diff line change 6
6
{%- let build_slug2 = slug::slugify(crate::BUILD_VERSION) -%}
7
7
{%- endif -%}
8
8
9
- < link rel ="stylesheet " href ="/-/static/{{rustdoc_css_file.as_ref().unwrap( )}}?{{build_slug2}} " media ="all " />
9
+ < link rel ="stylesheet " href ="/-/static/{{rustdoc_css_file.as_ref().expect( " rustdoc_css_file missing " )}}?{{build_slug2}}" media="all " />
10
10
< link rel ="stylesheet " href ="/-/static/font-awesome.css?{{build_slug2}} " media ="all " />
11
11
12
12
< link rel ="search " href ="/-/static/opensearch.xml " type ="application/opensearchdescription+xml " title ="Docs.rs " />
You can’t perform that action at this time.
0 commit comments