fix: truncate strings

This commit is contained in:
Patrick 2024-11-14 12:30:59 +01:00
parent e7ba129bed
commit de9e2f573b
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F

View file

@ -141,8 +141,10 @@ async fn main() -> Result<()> {
for l in io::BufReader::new(file).lines() {
let l = l?;
let l = if let Some((pr, _)) = l.split_once("#") {
let pr = pr.trim();
pr.parse::<u32>()?
} else {
let l = l.trim();
l.parse::<u32>()?
};
let pr = get_pr(l, &client).await?;