Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Update actions/checkout action to #328

Update actions/checkout action to

Update actions/checkout action to #328

Triggered via push August 19, 2024 00:49
Status Success
Total duration 1m 53s
Artifacts

gh-pages.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

15 warnings
the loop variable `i` is used to index `repositories`: src/main.rs#L116
warning: the loop variable `i` is used to index `repositories` --> src/main.rs:116:14 | 116 | for i in 0..repositories.len() { | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop = note: `#[warn(clippy::needless_range_loop)]` on by default help: consider using an iterator and enumerate() | 116 | for (i, <item>) in repositories.iter().enumerate() { | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unneeded late initialization: src/main.rs#L87
warning: unneeded late initialization --> src/main.rs:87:13 | 87 | let open_issues_count; | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: move the declaration `open_issues_count` here and remove the assignments from the `match` arms | 87 ~ 88 ~ let open_issues_count = match repository.has_issues.unwrap() { 89 | true => { 90 ~ repository.open_issues_count.unwrap() 91 | } 92 | false => { 93 ~ 0 94 | } 95 ~ }; |
unneeded late initialization: src/main.rs#L77
warning: unneeded late initialization --> src/main.rs:77:13 | 77 | let description; | ^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: move the declaration `description` here and remove the assignments from the `match` arms | 77 ~ 78 ~ let description = match repository.description { 79 | Some(gh_description) => { 80 ~ gh_description 81 | } 82 | None => { 83 ~ String::new() 84 | } 85 ~ }; |
unneeded late initialization: src/main.rs#L39
warning: unneeded late initialization --> src/main.rs:39:5 | 39 | let octocrab; | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init = note: `#[warn(clippy::needless_late_init)]` on by default help: move the declaration `octocrab` here and remove the assignments from the `match` arms | 39 ~ 40 ~ let octocrab = match fs::read_to_string("./token.txt") { 41 | Ok(_) => { 42 ~ octocrab::OctocrabBuilder::new() 43 | .personal_token(fs::read_to_string("./token.txt").unwrap()) 44 | .build() 45 ~ .unwrap() 46 | } 47 | Err(_) => { 48 ~ octocrab::OctocrabBuilder::new().build().unwrap() 49 | } 50 ~ }; |
Publish
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Publish
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Publish
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/
Publish
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/
Publish
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/
Publish
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/
Publish
unused manifest key: registries
the loop variable `i` is used to index `repositories`: src/main.rs#L116
warning: the loop variable `i` is used to index `repositories` --> src/main.rs:116:14 | 116 | for i in 0..repositories.len() { | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop = note: `#[warn(clippy::needless_range_loop)]` on by default help: consider using an iterator and enumerate() | 116 | for (i, <item>) in repositories.iter().enumerate() { | ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unneeded late initialization: src/main.rs#L87
warning: unneeded late initialization --> src/main.rs:87:13 | 87 | let open_issues_count; | ^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: move the declaration `open_issues_count` here and remove the assignments from the `match` arms | 87 ~ 88 ~ let open_issues_count = match repository.has_issues.unwrap() { 89 | true => { 90 ~ repository.open_issues_count.unwrap() 91 | } 92 | false => { 93 ~ 0 94 | } 95 ~ }; |
unneeded late initialization: src/main.rs#L77
warning: unneeded late initialization --> src/main.rs:77:13 | 77 | let description; | ^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init help: move the declaration `description` here and remove the assignments from the `match` arms | 77 ~ 78 ~ let description = match repository.description { 79 | Some(gh_description) => { 80 ~ gh_description 81 | } 82 | None => { 83 ~ String::new() 84 | } 85 ~ }; |
unneeded late initialization: src/main.rs#L39
warning: unneeded late initialization --> src/main.rs:39:5 | 39 | let octocrab; | ^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init = note: `#[warn(clippy::needless_late_init)]` on by default help: move the declaration `octocrab` here and remove the assignments from the `match` arms | 39 ~ 40 ~ let octocrab = match fs::read_to_string("./token.txt") { 41 | Ok(_) => { 42 ~ octocrab::OctocrabBuilder::new() 43 | .personal_token(fs::read_to_string("./token.txt").unwrap()) 44 | .build() 45 ~ .unwrap() 46 | } 47 | Err(_) => { 48 ~ octocrab::OctocrabBuilder::new().build().unwrap() 49 | } 50 ~ }; |