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

Update Rust crate serde_yaml to 0.9.0 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Update Rust crate serde_yaml to 0.9.0

b09b995
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Update Rust crate serde_yaml to 0.9.0 #18

Update Rust crate serde_yaml to 0.9.0
b09b995
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded May 5, 2024 in 0s

clippy

4 warnings

Details

Results

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

Versions

  • rustc 1.80.0-nightly (e82c861d7 2024-05-04)
  • cargo 1.80.0-nightly (05364cb2f 2024-05-03)
  • clippy 0.1.80 (e82c861 2024-05-04)

Annotations

Check warning on line 116 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the loop variable `i` is used to index `repositories`

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() {
    |         ~~~~~~~~~~~    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Check warning on line 87 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded late initialization

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: declare `open_issues_count` here
   |
88 |             let open_issues_count = match repository.has_issues.unwrap() {
   |             +++++++++++++++++++++++
help: remove the assignments from the `match` arms
   |
90 ~                     repository.open_issues_count.unwrap()
91 |                 }
92 |                 false => {
93 ~                     0
   |
help: add a semicolon after the `match` expression
   |
95 |             };
   |              +

Check warning on line 77 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded late initialization

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: declare `description` here
   |
78 |             let description = match repository.description {
   |             +++++++++++++++++
help: remove the assignments from the `match` arms
   |
80 ~                     gh_description
81 |                 }
82 |                 None => {
83 ~                     String::new()
   |
help: add a semicolon after the `match` expression
   |
85 |             };
   |              +

Check warning on line 39 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unneeded late initialization

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: declare `octocrab` here
   |
40 |     let octocrab = match fs::read_to_string("./token.txt") {
   |     ++++++++++++++
help: remove the assignments from the `match` arms
   |
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()
   |
help: add a semicolon after the `match` expression
   |
50 |     };
   |      +