fix: truncate strings
This commit is contained in:
parent
e7ba129bed
commit
de9e2f573b
|
@ -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?;
|
||||
|
|
Loading…
Reference in a new issue