diff --git a/src/repository/mod.rs b/src/repository/mod.rs index b730ea7..2315591 100644 --- a/src/repository/mod.rs +++ b/src/repository/mod.rs @@ -27,7 +27,7 @@ impl fmt::Display for Error { } } -#[derive(Clone)] +#[derive(Clone, PartialEq)] pub struct TagDetails { pub arch: Option, pub os: Option, diff --git a/src/widget/details.rs b/src/widget/details.rs index f4aa704..d7db2c7 100644 --- a/src/widget/details.rs +++ b/src/widget/details.rs @@ -18,6 +18,7 @@ impl Details { }; detail.details.sort_by(|a, b| a.arch.cmp(&b.arch)); + detail.details.dedup(); detail }