feat(oma-refresh): first debug version of mirror+file
parser
#5724
Annotations
1 error and 22 warnings
clippy
Process completed with exit code 101.
|
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/
|
this loop could be written as a `for` loop:
oma-refresh/src/sourceslist.rs#L609
warning: this loop could be written as a `for` loop
--> oma-refresh/src/sourceslist.rs:609:9
|
609 | while let Some(entry) = line.next() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for entry in line`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
= note: `#[warn(clippy::while_let_on_iterator)]` on by default
|
calling `push_str()` using a single-character string literal:
oma-refresh/src/sourceslist.rs#L138
warning: calling `push_str()` using a single-character string literal
--> oma-refresh/src/sourceslist.rs:138:17
|
138 | schema.push_str("+");
| ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `schema.push('+')`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
= note: `#[warn(clippy::single_char_add_str)]` on by default
|
fields `url`, `priority`, `archs`, and `item_type` are never read:
oma-refresh/src/sourceslist.rs#L101
warning: fields `url`, `priority`, `archs`, and `item_type` are never read
--> oma-refresh/src/sourceslist.rs:101:9
|
100 | pub struct MirrorTransportItem {
| ------------------- fields in this struct
101 | pub url: String,
| ^^^
102 | pub priority: i64,
| ^^^^^^^^
103 | pub archs: Vec<String>,
| ^^^^^
104 | pub item_type: MirrorTransportItemType,
| ^^^^^^^^^
|
= note: `MirrorTransportItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
unused variable: `items`:
oma-refresh/src/sourceslist.rs#L330
warning: unused variable: `items`
--> oma-refresh/src/sourceslist.rs:330:21
|
330 | let items = parse_mirror_transport_file(&f);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_items`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `mem::MaybeUninit`:
oma-refresh/src/sourceslist.rs#L2
warning: unused import: `mem::MaybeUninit`
--> oma-refresh/src/sourceslist.rs:2:35
|
2 | borrow::Cow, fs::Permissions, mem::MaybeUninit, os::unix::fs::PermissionsExt, path::Path,
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
clippy
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/
|
clippy
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/
|
clippy
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/
|
clippy
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/
|
build
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/
|
build
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/
|
build
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/
|
build
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/
|
this loop could be written as a `for` loop:
oma-refresh/src/sourceslist.rs#L609
warning: this loop could be written as a `for` loop
--> oma-refresh/src/sourceslist.rs:609:9
|
609 | while let Some(entry) = line.next() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `for entry in line`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_on_iterator
= note: `#[warn(clippy::while_let_on_iterator)]` on by default
|
calling `push_str()` using a single-character string literal:
oma-refresh/src/sourceslist.rs#L138
warning: calling `push_str()` using a single-character string literal
--> oma-refresh/src/sourceslist.rs:138:17
|
138 | schema.push_str("+");
| ^^^^^^^^^^^^^^^^^^^^ help: consider using `push` with a character literal: `schema.push('+')`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_add_str
= note: `#[warn(clippy::single_char_add_str)]` on by default
|
fields `url`, `priority`, `archs`, and `item_type` are never read:
oma-refresh/src/sourceslist.rs#L101
warning: fields `url`, `priority`, `archs`, and `item_type` are never read
--> oma-refresh/src/sourceslist.rs:101:9
|
100 | pub struct MirrorTransportItem {
| ------------------- fields in this struct
101 | pub url: String,
| ^^^
102 | pub priority: i64,
| ^^^^^^^^
103 | pub archs: Vec<String>,
| ^^^^^
104 | pub item_type: MirrorTransportItemType,
| ^^^^^^^^^
|
= note: `MirrorTransportItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
unused variable: `items`:
oma-refresh/src/sourceslist.rs#L330
warning: unused variable: `items`
--> oma-refresh/src/sourceslist.rs:330:21
|
330 | let items = parse_mirror_transport_file(&f);
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_items`
|
= note: `#[warn(unused_variables)]` on by default
|
unused import: `mem::MaybeUninit`:
oma-refresh/src/sourceslist.rs#L2
warning: unused import: `mem::MaybeUninit`
--> oma-refresh/src/sourceslist.rs:2:35
|
2 | borrow::Cow, fs::Permissions, mem::MaybeUninit, os::unix::fs::PermissionsExt, path::Path,
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|