Skip to content

Commit

Permalink
Automatic deploy to GitHub Pages: 1f966e9
Browse files Browse the repository at this point in the history
  • Loading branch information
GHA CI committed Dec 1, 2024
1 parent 1d52c77 commit df8a1aa
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion master/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5776,7 +5776,22 @@ <h3>Example</h3>
pedantic = { level = "warn", priority = -1 }
similar_names = "allow"
</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">1.78.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+lint_groups_priority">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/cargo/mod.rs#L170">View Source</a></div></div></div></article><article class="panel panel-default" id="little_endian_bytes"><input id="label-little_endian_bytes" type="checkbox"><label for="label-little_endian_bytes" onclick="highlightIfNeeded('little_endian_bytes')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-little_endian_bytes"><span>little_endian_bytes</span> <a href="#little_endian_bytes" 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-restriction">restriction</span> <span class="label label-lint-level label-lint-level-allow">allow</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">1.78.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+lint_groups_priority">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/cargo/mod.rs#L170">View Source</a></div></div></div></article><article class="panel panel-default" id="literal_string_with_formatting_args"><input id="label-literal_string_with_formatting_args" type="checkbox"><label for="label-literal_string_with_formatting_args" onclick="highlightIfNeeded('literal_string_with_formatting_args')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-literal_string_with_formatting_args"><span>literal_string_with_formatting_args</span> <a href="#literal_string_with_formatting_args" 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>Checks if string literals have formatting arguments outside of macros
using them (like <code>format!</code>).</p>
<h3>Why is this bad?</h3>
<p>It will likely not generate the expected content.</p>
<h3>Example</h3>
<pre><code class="language-rust">let x: Option&lt;usize&gt; = None;
let y = "hello";
x.expect("{y:?}");
</code></pre>
<p>Use instead:</p>
<pre><code class="language-rust">let x: Option&lt;usize&gt; = None;
let y = "hello";
x.expect(&amp;format!("{y:?}"));
</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">1.83.0</span></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/issues?q=is%3Aissue+literal_string_with_formatting_args">Related Issues</a></div><div class="lint-additional-info-item"><a href="https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/literal_string_with_formatting_args.rs#L12">View Source</a></div></div></div></article><article class="panel panel-default" id="little_endian_bytes"><input id="label-little_endian_bytes" type="checkbox"><label for="label-little_endian_bytes" onclick="highlightIfNeeded('little_endian_bytes')"><header class="panel-heading"><h2 class="panel-title"><div class="panel-title-name" id="lint-little_endian_bytes"><span>little_endian_bytes</span> <a href="#little_endian_bytes" 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-restriction">restriction</span> <span class="label label-lint-level label-lint-level-allow">allow</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 the usage of the <code>to_le_bytes</code> method and/or the function <code>from_le_bytes</code>.</p>
<h3>Why restrict this?</h3>
<p>To ensure use of big-endian or the target’s endianness rather than little-endian.</p>
Expand Down

0 comments on commit df8a1aa

Please sign in to comment.