summaryrefslogtreecommitdiffstats
path: root/src/prs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/prs.rs')
-rw-r--r--src/prs.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/prs.rs b/src/prs.rs
index b4e6e30..c06a7d6 100644
--- a/src/prs.rs
+++ b/src/prs.rs
@@ -527,7 +527,6 @@ async fn view_pr_labels(repo: &RepoName, api: &Forgejo, pr: Option<u64>) -> eyre
let (category, name) = name
.split_once("/")
.ok_or_eyre("label is exclusive but does not have slash")?;
- let rgb_fg = format!("\x1b[38;2;{r};{g};{b}m");
let rgb_bg_dark = format!("\x1b[48;2;{r2};{g2};{b2}m");
print!("{rgb_bg_dark}{text_color} {category} {rgb_bg} {name} {reset} ");
} else {
@@ -985,7 +984,7 @@ async fn view_pr_files(repo: &RepoName, api: &Forgejo, pr: Option<u64>) -> eyre:
limit: Some(u32::MAX),
..Default::default()
};
- let (headers, files) = api
+ let (_, files) = api
.repo_get_pull_request_files(repo.owner(), repo.name(), pr, query)
.await?;
let max_additions = files