Update test.yaml #11
test.yaml
on: push
Check
1m 12s
Rustfmt
1m 14s
Matrix: Test Suite
Annotations
106 errors and 15 warnings
Test Suite (ubuntu-latest)
Process completed with exit code 101.
|
the following explicit lifetimes could be elided: 'r:
arcw-lint/src/lib.rs#L625
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
|
variables can be used directly in the `format!` string:
arcw-lint/src/lib.rs#L470
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}");
|
|
variables can be used directly in the `format!` string:
arcw-lint/src/lib.rs#L462
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}");
|
|
`Box::new(_)` of default value:
arcw-lint/src/lib.rs#L453
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`
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L238
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L237
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L236
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L235
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L234
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L233
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L232
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L231
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L230
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L229
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L228
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L227
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L226
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L225
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L224
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L223
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L222
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L221
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L220
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L219
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L218
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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L217
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:217:65
|
217 | NodeValue::CodeBlock(ncb) => self.depart_code_block(&*data, ncb),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L216
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:216:78
|
216 | NodeValue::DescriptionDetails => self.depart_description_details(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L215
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:215:72
|
215 | NodeValue::DescriptionTerm => self.depart_description_term(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L214
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:214:77
|
214 | NodeValue::DescriptionItem(ndi) => self.depart_description_item(&*data, ndi),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L213
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:213:72
|
213 | NodeValue::DescriptionList => self.depart_description_list(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L212
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:212:53
|
212 | NodeValue::Item(nl) => self.depart_item(&*data, nl),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L211
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:211:53
|
211 | NodeValue::List(nl) => self.depart_list(&*data, nl),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L210
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:210:62
|
210 | NodeValue::BlockQuote => self.depart_block_quote(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L209
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:209:68
|
209 | NodeValue::FrontMatter(fm) => self.depart_front_matter(&*data, fm),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L208
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:208:57
|
208 | NodeValue::Document => self.depart_document(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L57
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:57:79
|
57 | NodeValue::FootnoteReference(fr) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L56
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:56:54
|
56 | NodeValue::Image(nl) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L55
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:55:52
|
55 | NodeValue::Link(nl) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L54
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:54:62
|
54 | NodeValue::Superscript => self.enter_superscript(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L53
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:53:66
|
53 | NodeValue::Strikethrough => self.enter_strikethrough(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L52
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:52:52
|
52 | NodeValue::Strong => self.enter_strong(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L51
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:51:48
|
51 | NodeValue::Emph => self.enter_emph(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L50
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:50:67
|
50 | NodeValue::HtmlInline(html) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L49
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:49:52
|
49 | NodeValue::Code(nc) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L48
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:48:59
|
48 | NodeValue::LineBreak => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L47
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:47:59
|
47 | NodeValue::SoftBreak => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L46
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:46:61
|
46 | NodeValue::TaskItem(ti) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L45
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:45:53
|
45 | NodeValue::Text(txt) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L44
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:44:59
|
44 | NodeValue::TableCell => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L43
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:43:60
|
43 | NodeValue::TableRow(r) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L42
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:42:53
|
42 | NodeValue::Table(t) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L41
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:41:81
|
41 | NodeValue::FootnoteDefinition(fd) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L40
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:40:67
|
40 | NodeValue::ThematicBreak => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L39
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:39:58
|
39 | NodeValue::Heading(nh) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L38
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:38:58
|
38 | NodeValue::Paragraph => self.enter_paragraph(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L37
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:37:64
|
37 | NodeValue::HtmlBlock(nhb) => self.enter_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
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L36
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:36:64
|
36 | NodeValue::CodeBlock(ncb) => self.enter_code_block(&*data, ncb),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L35
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:35:77
|
35 | NodeValue::DescriptionDetails => self.enter_description_details(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L34
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:34:71
|
34 | NodeValue::DescriptionTerm => self.enter_description_term(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L33
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:33:76
|
33 | NodeValue::DescriptionItem(ndi) => self.enter_description_item(&*data, ndi),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L32
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:32:71
|
32 | NodeValue::DescriptionList => self.enter_description_list(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L31
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:31:52
|
31 | NodeValue::Item(nl) => self.enter_item(&*data, nl),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L30
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:30:52
|
30 | NodeValue::List(nl) => self.enter_list(&*data, nl),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L29
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:29:61
|
29 | NodeValue::BlockQuote => self.enter_block_quote(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L28
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:28:67
|
28 | NodeValue::FrontMatter(fm) => self.enter_front_matter(&*data, fm),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
|
deref which would be done by auto-deref:
arcw-lint/src/tree.rs#L27
error: deref which would be done by auto-deref
--> arcw-lint/src/tree.rs:27:56
|
27 | NodeValue::Document => self.enter_document(&*data),
| ^^^^^^ help: try this: `&data`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#explicit_auto_deref
= note: `-D clippy::explicit-auto-deref` implied by `-D warnings`
|
the `Err`-variant returned from this function is very large:
arcw-lint/src/preamble.rs#L126
error: the `Err`-variant returned from this function is very large
--> arcw-lint/src/preamble.rs:126:10
|
126 | ) -> Result<Field<'a>, Snippet<'a>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 160 bytes
|
= help: try reducing the size of `annotate_snippets::snippet::Snippet<'a>`, for example by boxing large elements or replacing it with `Box<annotate_snippets::snippet::Snippet<'a>>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `-D clippy::result-large-err` implied by `-D warnings`
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints.rs#L193
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints.rs:193:5
|
193 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints.rs:193:61
|
193 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'a:
arcw-lint/src/lints.rs#L188
error: the following explicit lifetimes could be elided: 'a
--> arcw-lint/src/lints.rs:188:5
|
188 | fn find_resources<'a>(&self, ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints.rs:188:53
|
188 | fn find_resources<'a>(&self, ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints.rs#L184
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints.rs:184:5
|
184 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints.rs:184:61
|
184 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error>;
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'a:
arcw-lint/src/lints.rs#L180
error: the following explicit lifetimes could be elided: 'a
--> arcw-lint/src/lints.rs:180:5
|
180 | fn find_resources<'a>(&self, _ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints.rs:180:54
|
180 | fn find_resources<'a>(&self, _ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/url.rs#L15
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/url.rs:15:5
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/url.rs:15:61
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/uint.rs#L57
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/uint.rs:57:5
|
57 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/uint.rs:57:61
|
57 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/uint.rs#L15
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/uint.rs:15:5
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/uint.rs:15:61
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/trim.rs#L15
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/trim.rs:15:5
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/trim.rs:15:61
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
variables can be used directly in the `format!` string:
arcw-lint/src/lints/preamble/requires_status.rs#L89
error: variables can be used directly in the `format!` string
--> arcw-lint/src/lints/preamble/requires_status.rs:89:38
|
89 | let mut number = format!("arc-{}.md", k);
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
89 - let mut number = format!("arc-{}.md", k);
89 + let mut number = format!("arc-{k}.md");
|
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/requires_status.rs#L63
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/requires_status.rs:63:5
|
63 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/requires_status.rs:63:61
|
63 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
variables can be used directly in the `format!` string:
arcw-lint/src/lints/preamble/requires_status.rs#L47
error: variables can be used directly in the `format!` string
--> arcw-lint/src/lints/preamble/requires_status.rs:47:34
|
47 | let mut number = format!("arc-{}.md", n);
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
47 - let mut number = format!("arc-{}.md", n);
47 + let mut number = format!("arc-{n}.md");
|
|
the following explicit lifetimes could be elided: 'a:
arcw-lint/src/lints/preamble/requires_status.rs#L34
error: the following explicit lifetimes could be elided: 'a
--> arcw-lint/src/lints/preamble/requires_status.rs:34:5
|
34 | fn find_resources<'a>(&self, ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/requires_status.rs:34:53
|
34 | fn find_resources<'a>(&self, ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/required_if_eq.rs#L19
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/required_if_eq.rs:19:5
|
19 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/required_if_eq.rs:19:61
|
19 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
variables can be used directly in the `format!` string:
arcw-lint/src/lints/preamble/required.rs#L25
error: variables can be used directly in the `format!` string
--> arcw-lint/src/lints/preamble/required.rs:25:25
|
25 | let label = format!("preamble is missing header(s): `{}`", missing);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
25 - let label = format!("preamble is missing header(s): `{}`", missing);
25 + let label = format!("preamble is missing header(s): `{missing}`");
|
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/required.rs#L15
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/required.rs:15:5
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/required.rs:15:61
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/require_referenced.rs#L20
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/require_referenced.rs:20:5
|
20 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/require_referenced.rs:20:61
|
20 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/regex.rs#L27
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/regex.rs:27:5
|
27 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/regex.rs:27:61
|
27 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/order.rs#L34
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/order.rs:34:5
|
34 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/order.rs:34:61
|
34 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/one_of.rs#L18
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/one_of.rs:18:5
|
18 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/one_of.rs:18:61
|
18 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/no_duplicates.rs#L17
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/no_duplicates.rs:17:5
|
17 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/no_duplicates.rs:17:61
|
17 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/list.rs#L15
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/list.rs:15:5
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/list.rs:15:61
|
15 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/length.rs#L19
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/length.rs:19:5
|
19 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/length.rs:19:61
|
19 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
variables can be used directly in the `format!` string:
arcw-lint/src/lints/preamble/file_name.rs#L54
error: variables can be used directly in the `format!` string
--> arcw-lint/src/lints/preamble/file_name.rs:54:28
|
54 | let footer_label = format!("this file's name should be `{}`", expected);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
54 - let footer_label = format!("this file's name should be `{}`", expected);
54 + let footer_label = format!("this file's name should be `{expected}`");
|
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/file_name.rs#L21
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/file_name.rs:21:5
|
21 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/file_name.rs:21:61
|
21 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/date.rs#L17
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/date.rs:17:5
|
17 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/date.rs:17:61
|
17 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the borrowed expression implements the required traits:
arcw-lint/src/lints/preamble/author.rs#L48
error: the borrowed expression implements the required traits
--> arcw-lint/src/lints/preamble/author.rs:48:33
|
48 | let set = RegexSet::new(&[
| _________________________________^
49 | | r"^[^()<>,@]+ \(@[a-zA-Z\d-]+\)$", // Match a GitHub username.
50 | | r"^[^()<>,@]+ <[^@][^>]*@[^>]+\.[^>]+>$", // Match an email address.
51 | | r"^[^()<>,@]+$", // Match just a name.
52 | | ])
| |_________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
help: change this to
|
48 ~ let set = RegexSet::new([
49 + r"^[^()<>,@]+ \(@[a-zA-Z\d-]+\)$", // Match a GitHub username.
50 + r"^[^()<>,@]+ <[^@][^>]*@[^>]+\.[^>]+>$", // Match an email address.
51 + r"^[^()<>,@]+$", // Match just a name.
52 ~ ])
|
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/preamble/author.rs#L36
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/preamble/author.rs:36:5
|
36 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/preamble/author.rs:36:61
|
36 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/markdown/section_required.rs#L17
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/markdown/section_required.rs:17:5
|
17 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/section_required.rs:17:61
|
17 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
variables can be used directly in the `format!` string:
arcw-lint/src/lints/markdown/section_order.rs#L119
error: variables can be used directly in the `format!` string
--> arcw-lint/src/lints/markdown/section_order.rs:119:21
|
119 | write!(footer_label, "`{}` should come after `{}`", name, preceding,).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
119 - write!(footer_label, "`{}` should come after `{}`", name, preceding,).unwrap();
119 + write!(footer_label, "`{name}` should come after `{preceding}`",).unwrap();
|
|
variables can be used directly in the `format!` string:
arcw-lint/src/lints/markdown/section_order.rs#L114
error: variables can be used directly in the `format!` string
--> arcw-lint/src/lints/markdown/section_order.rs:114:29
|
114 | let label = format!("section `{}` is out of order", name);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
help: change this to
|
114 - let label = format!("section `{}` is out of order", name);
114 + let label = format!("section `{name}` is out of order");
|
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/markdown/section_order.rs#L37
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/markdown/section_order.rs:37:5
|
37 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/section_order.rs:37:61
|
37 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/markdown/relative_links.rs#L19
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/markdown/relative_links.rs:19:5
|
19 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/relative_links.rs:19:61
|
19 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/markdown/regex.rs#L33
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/markdown/regex.rs:33:5
|
33 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/regex.rs:33:61
|
33 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/markdown/link_status.rs#L76
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/markdown/link_status.rs:76:5
|
76 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/link_status.rs:76:61
|
76 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'a:
arcw-lint/src/lints/markdown/link_status.rs#L66
error: the following explicit lifetimes could be elided: 'a
--> arcw-lint/src/lints/markdown/link_status.rs:66:5
|
66 | fn find_resources<'a>(&self, ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/link_status.rs:66:53
|
66 | fn find_resources<'a>(&self, ctx: &FetchContext<'a>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
|
the following explicit lifetimes could be elided: 'b:
arcw-lint/src/lints/markdown/link_first.rs#L22
error: the following explicit lifetimes could be elided: 'b
--> arcw-lint/src/lints/markdown/link_first.rs:22:5
|
22 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: replace with `'_` in generic arguments such as here
--> arcw-lint/src/lints/markdown/link_first.rs:22:61
|
22 | fn lint<'a, 'b>(&self, slug: &'a str, ctx: &Context<'a, 'b>) -> Result<(), Error> {
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `-D clippy::needless-lifetimes` implied by `-D warnings`
|
Rustfmt
could not compile `arcw-lint` due to 104 previous errors
|
Rustfmt
Clippy had exited with the 101 exit code
|
Test Suite (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test Suite (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|