Skip to content

Commit fed7605

Browse files
authored
Follow redundant_pattern_matching clippy lint
Closes rust-lang#1723
1 parent 15560cc commit fed7605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/core/about/builds.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h4 id="detecting-docsrs"> <a href="#detecting-docsrs">Detecting Docs.rs</a> </h
3232
<p>
3333
To recognize Docs.rs from <code>build.rs</code> files, you can test for the environment variable <code>DOCS_RS</code>, e.g.:
3434
{% filter dedent(levels=3) -%}
35-
<pre><code class="lang-rust">if let Ok(_) = std::env::var("DOCS_RS") {
35+
<pre><code class="lang-rust">if std::env::var("DOCS_RS").is_ok() {
3636
// ... your code here ...
3737
}</code></pre>
3838
{%- endfilter %}

0 commit comments

Comments
 (0)