Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Oct 14, 2022
1 parent 175f664 commit 332c635
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pacman-bintrans-common/src/decompress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use flate2::read::GzDecoder;
use std::io::Read;
use xz::read::XzDecoder;

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub enum CompressedWith {
// .gz
Gzip,
Expand Down
2 changes: 1 addition & 1 deletion pacman-bintrans-sign/src/archlinux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub async fn load_db(client: &Client, path: &str) -> Result<Vec<u8>> {
}
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Eq)]
pub struct Pkg {
pub name: String,
pub base: String,
Expand Down
4 changes: 2 additions & 2 deletions pacman-bintrans-sign/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl Database {
}
}

#[derive(Identifiable, Queryable, AsChangeset, Clone, PartialEq, Debug)]
#[derive(Identifiable, Queryable, AsChangeset, Clone, PartialEq, Eq, Debug)]
#[table_name = "pkgs"]
pub struct SignatureRow {
pub id: i32,
Expand All @@ -90,7 +90,7 @@ pub struct SignatureRow {
pub uuid: Option<String>,
}

#[derive(Insertable, PartialEq, Debug, Clone)]
#[derive(Insertable, PartialEq, Eq, Debug, Clone)]
#[table_name = "pkgs"]
pub struct NewSignatureRow {
pub sha256sum: String,
Expand Down

0 comments on commit 332c635

Please sign in to comment.