mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -500,7 +500,7 @@ fn has_runnable_doc_test(attrs: &hir::Attrs) -> bool {
|
|||
docs_from_attrs(attrs).map_or(false, |doc| {
|
||||
let mut in_code_block = false;
|
||||
|
||||
for line in String::from(doc).lines() {
|
||||
for line in doc.lines() {
|
||||
if let Some(header) =
|
||||
RUSTDOC_FENCES.into_iter().find_map(|fence| line.strip_prefix(fence))
|
||||
{
|
||||
|
@ -570,7 +570,7 @@ mod tests {
|
|||
if let Some(cfg) = runnable.cfg {
|
||||
a.push_str(&format!(", {cfg:?}"));
|
||||
}
|
||||
a.push_str(")");
|
||||
a.push(')');
|
||||
a
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue