File: wnpp_bugs.rs

package info (click to toggle)
rust-debbugs 0.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 320 kB
  • sloc: makefile: 4
file content (20 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[tokio::main]
async fn main() {
    #[cfg(feature = "env_logger")]
    env_logger::init();
    use debbugs::Debbugs;
    let debbugs = Debbugs::default();
    let query = debbugs::SearchQuery {
        package: Some("wnpp"),
        ..Default::default()
    };
    for ids in debbugs.get_bugs(&query).await.unwrap().chunks(50) {
        for (id, report) in debbugs.get_status(ids).await.unwrap() {
            println!(
                "{}: {}",
                id,
                report.subject.unwrap_or("<no title>".to_string())
            );
        }
    }
}