Skip to content

Commit

Permalink
Follow redundant_pattern_matching clippy lint
Browse files Browse the repository at this point in the history
Closes #1723
  • Loading branch information
Stargateur authored and syphar committed Apr 15, 2022
1 parent 15560cc commit 8f8238f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/core/about/builds.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h4 id="detecting-docsrs"> <a href="#detecting-docsrs">Detecting Docs.rs</a> </h
<p>
To recognize Docs.rs from <code>build.rs</code> files, you can test for the environment variable <code>DOCS_RS</code>, e.g.:
{% filter dedent(levels=3) -%}
<pre><code class="lang-rust">if let Ok(_) = std::env::var("DOCS_RS") {
<pre><code class="lang-rust">if std::env::var("DOCS_RS").is_ok() {
// ... your code here ...
}</code></pre>
{%- endfilter %}
Expand Down

0 comments on commit 8f8238f

Please sign in to comment.