Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: 33a6590
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Jan 1, 2025
1 parent 63a002e commit 2c38ec6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions master/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ <h3>Example</h3>
..
}
</code></pre>
</div><div class="lint-additional-info-container"><div class="lint-additional-info-item"><span> Applicability: </span><span class="label label-default label-applicability">MachineApplicable</span><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a></div><div class="lint-additional-info-item"><span>Added in: </span><span class="label label-default label-version">1.49.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+comparison_to_empty">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/len_zero.rs#L82">View Source</a></div></div></div></article><article class="panel panel-default" id="const_is_empty"><input id="label-const_is_empty" type="checkbox"><label for="label-const_is_empty" onclick="highlightIfNeeded('const_is_empty')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-const_is_empty"><span>const_is_empty</span> <a href="#const_is_empty" onclick="lintAnchor(event)" class="anchor label label-default">&para;</a> <a href="" class="anchor label label-default" onclick="copyToClipboard(event)">&#128203;</a></div><div class="panel-title-addons"><span class="label label-lint-group label-default label-group-suspicious">suspicious</span> <span class="label label-lint-level label-lint-level-warn">warn</span> <span class="label label-doc-folding"></span></div></h2></header></label><div class="list-group lint-docs"><div class="list-group-item lint-doc-md"><h3>What it does</h3>
</div><div class="lint-additional-info-container"><div class="lint-additional-info-item"><span> Applicability: </span><span class="label label-default label-applicability">MachineApplicable</span><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a></div><div class="lint-additional-info-item"><span>Added in: </span><span class="label label-default label-version">1.49.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+comparison_to_empty">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/len_zero.rs#L83">View Source</a></div></div></div></article><article class="panel panel-default" id="const_is_empty"><input id="label-const_is_empty" type="checkbox"><label for="label-const_is_empty" onclick="highlightIfNeeded('const_is_empty')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-const_is_empty"><span>const_is_empty</span> <a href="#const_is_empty" onclick="lintAnchor(event)" class="anchor label label-default">&para;</a> <a href="" class="anchor label label-default" onclick="copyToClipboard(event)">&#128203;</a></div><div class="panel-title-addons"><span class="label label-lint-group label-default label-group-suspicious">suspicious</span> <span class="label label-lint-level label-lint-level-warn">warn</span> <span class="label label-doc-folding"></span></div></h2></header></label><div class="list-group lint-docs"><div class="list-group-item lint-doc-md"><h3>What it does</h3>
<p>It identifies calls to <code>.is_empty()</code> on constant values.</p>
<h3>Why is this bad?</h3>
<p>String literals and constant values are known at compile time. Checking if they
Expand Down Expand Up @@ -5595,7 +5595,7 @@ <h3>Example</h3>
}
}
</code></pre>
</div><div class="lint-additional-info-container"><div class="lint-additional-info-item"><span> Applicability: </span><span class="label label-default label-applicability">Unspecified</span><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a></div><div class="lint-additional-info-item"><span>Added in: </span><span class="label label-default label-version">pre 1.29.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+len_without_is_empty">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/len_zero.rs#L56">View Source</a></div></div></div></article><article class="panel panel-default" id="len_zero"><input id="label-len_zero" type="checkbox"><label for="label-len_zero" onclick="highlightIfNeeded('len_zero')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-len_zero"><span>len_zero</span> <a href="#len_zero" onclick="lintAnchor(event)" class="anchor label label-default">&para;</a> <a href="" class="anchor label label-default" onclick="copyToClipboard(event)">&#128203;</a></div><div class="panel-title-addons"><span class="label label-lint-group label-default label-group-style">style</span> <span class="label label-lint-level label-lint-level-warn">warn</span> <span class="label label-doc-folding"></span></div></h2></header></label><div class="list-group lint-docs"><div class="list-group-item lint-doc-md"><h3>What it does</h3>
</div><div class="lint-additional-info-container"><div class="lint-additional-info-item"><span> Applicability: </span><span class="label label-default label-applicability">Unspecified</span><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a></div><div class="lint-additional-info-item"><span>Added in: </span><span class="label label-default label-version">pre 1.29.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+len_without_is_empty">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/len_zero.rs#L57">View Source</a></div></div></div></article><article class="panel panel-default" id="len_zero"><input id="label-len_zero" type="checkbox"><label for="label-len_zero" onclick="highlightIfNeeded('len_zero')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-len_zero"><span>len_zero</span> <a href="#len_zero" onclick="lintAnchor(event)" class="anchor label label-default">&para;</a> <a href="" class="anchor label label-default" onclick="copyToClipboard(event)">&#128203;</a></div><div class="panel-title-addons"><span class="label label-lint-group label-default label-group-style">style</span> <span class="label label-lint-level label-lint-level-warn">warn</span> <span class="label label-doc-folding"></span></div></h2></header></label><div class="list-group lint-docs"><div class="list-group-item lint-doc-md"><h3>What it does</h3>
<p>Checks for getting the length of something via <code>.len()</code>
just to compare to zero, and suggests using <code>.is_empty()</code> where applicable.</p>
<h3>Why is this bad?</h3>
Expand All @@ -5619,7 +5619,7 @@ <h3>Example</h3>
..
}
</code></pre>
</div><div class="lint-additional-info-container"><div class="lint-additional-info-item"><span> Applicability: </span><span class="label label-default label-applicability">MachineApplicable</span><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a></div><div class="lint-additional-info-item"><span>Added in: </span><span class="label label-default label-version">pre 1.29.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+len_zero">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/len_zero.rs#L21">View Source</a></div></div></div></article><article class="panel panel-default" id="let_and_return"><input id="label-let_and_return" type="checkbox"><label for="label-let_and_return" onclick="highlightIfNeeded('let_and_return')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-let_and_return"><span>let_and_return</span> <a href="#let_and_return" onclick="lintAnchor(event)" class="anchor label label-default">&para;</a> <a href="" class="anchor label label-default" onclick="copyToClipboard(event)">&#128203;</a></div><div class="panel-title-addons"><span class="label label-lint-group label-default label-group-style">style</span> <span class="label label-lint-level label-lint-level-warn">warn</span> <span class="label label-doc-folding"></span></div></h2></header></label><div class="list-group lint-docs"><div class="list-group-item lint-doc-md"><h3>What it does</h3>
</div><div class="lint-additional-info-container"><div class="lint-additional-info-item"><span> Applicability: </span><span class="label label-default label-applicability">MachineApplicable</span><a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_lint_defs/enum.Applicability.html#variants">(?)</a></div><div class="lint-additional-info-item"><span>Added in: </span><span class="label label-default label-version">pre 1.29.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+len_zero">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/len_zero.rs#L22">View Source</a></div></div></div></article><article class="panel panel-default" id="let_and_return"><input id="label-let_and_return" type="checkbox"><label for="label-let_and_return" onclick="highlightIfNeeded('let_and_return')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-let_and_return"><span>let_and_return</span> <a href="#let_and_return" onclick="lintAnchor(event)" class="anchor label label-default">&para;</a> <a href="" class="anchor label label-default" onclick="copyToClipboard(event)">&#128203;</a></div><div class="panel-title-addons"><span class="label label-lint-group label-default label-group-style">style</span> <span class="label label-lint-level label-lint-level-warn">warn</span> <span class="label label-doc-folding"></span></div></h2></header></label><div class="list-group lint-docs"><div class="list-group-item lint-doc-md"><h3>What it does</h3>
<p>Checks for <code>let</code>-bindings, which are subsequently
returned.</p>
<h3>Why is this bad?</h3>
Expand Down

0 comments on commit 2c38ec6

Please sign in to comment.