Make the Rust garbage compile again

This commit is contained in:
Yorhel 2021-12-05 18:58:58 +01:00
parent b8dca570a0
commit 4588e67b64
12 changed files with 1348 additions and 1078 deletions

View file

@ -75,7 +75,7 @@ fn read_desc(rd: &mut archive::ArchiveEntry) -> Result<Option<Meta>> {
}
pub fn sync(pg: &postgres::GenericConnection, sys: i32, mirror: &str, repo: &str) {
pub fn sync<T: postgres::GenericClient>(pg: &mut T, sys: i32, mirror: &str, repo: &str) {
info!("Reading packages from {} {}", mirror, repo);
let path = format!("{}/{}/os/x86_64/{1:}.files.tar.gz", mirror, repo);