lib: Derive some traits for Link{,s} type

This commit is contained in:
Matthias Beyer 2016-02-15 13:18:31 +01:00
parent 19322b667a
commit 6480fb515c

View file

@ -2,6 +2,7 @@ use std::convert::Into;
use libimagstore::store::Entry; use libimagstore::store::Entry;
#[derive(PartialOrd, Ord, Eq, PartialEq, Clone, Debug)]
pub struct Link { pub struct Link {
link: String link: String
} }
@ -14,6 +15,7 @@ impl Link {
} }
#[derive(Eq, PartialEq, Clone, Debug)]
pub struct Links { pub struct Links {
links: Vec<Link>, links: Vec<Link>,
} }