Skip to content

Update test.yaml

Update test.yaml #11

GitHub Actions / clippy failed Dec 9, 2024 in 2s

clippy

103 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 103
Warning 0
Note 0
Help 0

Versions

  • rustc 1.67.0 (fc594f156 2023-01-24)
  • cargo 1.67.0 (8ecd4f20a 2023-01-10)
  • clippy 0.1.67 (fc594f1 2023-01-24)

Annotations

Check failure on line 630 in arcw-lint/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'r

error: the following explicit lifetimes could be elided: 'r
   --> arcw-lint/src/lib.rs:625:1
    |
625 | / fn process<'r, 'a>(
626 | |     reporter: &'r dyn Reporter,
627 | |     arena: &'a Arena<Node<'a, RefCell<Ast>>>,
628 | |     origin: Option<&'a str>,
629 | |     source: &'a str,
630 | | ) -> Result<Option<InnerContext<'a>>, Error> {
    | |____________________________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes

Check failure on line 470 in arcw-lint/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

error: variables can be used directly in the `format!` string
   --> arcw-lint/src/lib.rs:470:13
    |
470 |             panic!("no lint with the slug: {}", slug);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
470 -             panic!("no lint with the slug: {}", slug);
470 +             panic!("no lint with the slug: {slug}");
    |

Check failure on line 462 in arcw-lint/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variables can be used directly in the `format!` string

error: variables can be used directly in the `format!` string
   --> arcw-lint/src/lib.rs:462:13
    |
462 |             panic!("duplicate slug: {}", slug);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
462 -             panic!("duplicate slug: {}", slug);
462 +             panic!("duplicate slug: {slug}");
    |

Check failure on line 453 in arcw-lint/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`Box::new(_)` of default value

error: `Box::new(_)` of default value
   --> arcw-lint/src/lib.rs:453:20
    |
453 |             fetch: Box::new(fetch::DefaultFetch::default()),
    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Box::<fetch::tokio::Tokio>::default()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#box_default
    = note: `-D clippy::box-default` implied by `-D warnings`

Check failure on line 238 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:238:80
    |
238 |             NodeValue::FootnoteReference(fr) => self.depart_footnote_reference(&*data, fr),
    |                                                                                ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 237 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:237:55
    |
237 |             NodeValue::Image(nl) => self.depart_image(&*data, nl),
    |                                                       ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 236 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:236:53
    |
236 |             NodeValue::Link(nl) => self.depart_link(&*data, nl),
    |                                                     ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 235 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:235:63
    |
235 |             NodeValue::Superscript => self.depart_superscript(&*data),
    |                                                               ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 234 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:234:67
    |
234 |             NodeValue::Strikethrough => self.depart_strikethrough(&*data),
    |                                                                   ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 233 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:233:53
    |
233 |             NodeValue::Strong => self.depart_strong(&*data),
    |                                                     ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 232 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:232:49
    |
232 |             NodeValue::Emph => self.depart_emph(&*data),
    |                                                 ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 231 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:231:68
    |
231 |             NodeValue::HtmlInline(html) => self.depart_html_inline(&*data, html),
    |                                                                    ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 230 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:230:53
    |
230 |             NodeValue::Code(nc) => self.depart_code(&*data, nc),
    |                                                     ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 229 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:229:60
    |
229 |             NodeValue::LineBreak => self.depart_line_break(&*data),
    |                                                            ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 228 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:228:60
    |
228 |             NodeValue::SoftBreak => self.depart_soft_break(&*data),
    |                                                            ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 227 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:227:62
    |
227 |             NodeValue::TaskItem(ti) => self.depart_task_item(&*data, *ti),
    |                                                              ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 226 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:226:54
    |
226 |             NodeValue::Text(txt) => self.depart_text(&*data, txt),
    |                                                      ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 225 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:225:60
    |
225 |             NodeValue::TableCell => self.depart_table_cell(&*data),
    |                                                            ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 224 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:224:61
    |
224 |             NodeValue::TableRow(r) => self.depart_table_row(&*data, *r),
    |                                                             ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 223 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:223:54
    |
223 |             NodeValue::Table(t) => self.depart_table(&*data, t),
    |                                                      ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 222 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:222:82
    |
222 |             NodeValue::FootnoteDefinition(fd) => self.depart_footnote_definition(&*data, fd),
    |                                                                                  ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 221 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:221:68
    |
221 |             NodeValue::ThematicBreak => self.depart_thematic_break(&*data),
    |                                                                    ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 220 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:220:59
    |
220 |             NodeValue::Heading(nh) => self.depart_heading(&*data, nh),
    |                                                           ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 219 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:219:59
    |
219 |             NodeValue::Paragraph => self.depart_paragraph(&*data),
    |                                                           ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref

Check failure on line 218 in arcw-lint/src/tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

deref which would be done by auto-deref

error: deref which would be done by auto-deref
   --> arcw-lint/src/tree.rs:218:65
    |
218 |             NodeValue::HtmlBlock(nhb) => self.depart_html_block(&*data, nhb),
    |                                                                 ^^^^^^ help: try this: `&data`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref