remove duplicate details
This commit is contained in:
parent
a725161638
commit
e3c6e01036
@ -27,7 +27,7 @@ impl fmt::Display for Error {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, PartialEq)]
|
||||
pub struct TagDetails {
|
||||
pub arch: Option<String>,
|
||||
pub os: Option<String>,
|
||||
|
@ -18,6 +18,7 @@ impl Details {
|
||||
};
|
||||
|
||||
detail.details.sort_by(|a, b| a.arch.cmp(&b.arch));
|
||||
detail.details.dedup();
|
||||
detail
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user