Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Busch committed Mar 20, 2023
1 parent 4f5871d commit 5d23147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ async fn init_gh_data(username: &str, access_token: &str) -> Result<(Vec<ApiResp
issues_list_closed.sort_by_key(|i| i.repository.clone().unwrap_or_default());

// Convert the lengths of the issue lists to i32
let issues_list_open_len = issues_list_open.len() as i32;
let issues_list_closed_len = issues_list_closed.len() as i32;
let issues_list_open_len = issues_list_response_open.total_count;
let issues_list_closed_len = issues_list_response_closed.total_count;

Ok((issues_list_open, issues_list_closed, issues_list_open_len, issues_list_closed_len))
}
Expand Down Expand Up @@ -642,7 +642,7 @@ fn split_long_lines(s: &str, max_width: usize) -> String {
}


#[derive(Debug, Deserialize)]
#[derive(Deserialize)]
struct ApiResponse {
total_count: i32,
items: Vec<ApiResponseItem>,
Expand Down

0 comments on commit 5d23147

Please sign in to comment.