summaryrefslogtreecommitdiffstats
path: root/lib/entry
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 11:51:38 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:41 +0200
commit69dce9ed9f0f2e0be1746f7925d45d33587a59dd (patch)
treead618771b976b0c07636e87b60c6f35ee71a505b /lib/entry
parent9620e81f59f8f9fe4d610c2b3cadd44ed834c131 (diff)
[No-auto] lib/entry/link: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry')
-rw-r--r--lib/entry/libimagentrylink/src/link.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/entry/libimagentrylink/src/link.rs b/lib/entry/libimagentrylink/src/link.rs
index 5462256c..e30dd013 100644
--- a/lib/entry/libimagentrylink/src/link.rs
+++ b/lib/entry/libimagentrylink/src/link.rs
@@ -57,18 +57,18 @@ impl Link {
#[cfg(test)]
pub(crate) fn eq_store_id(&self, id: &StoreId) -> bool {
match self {
- &Link::Id { link: ref s } => s.eq(id),
- &Link::LinkTo { ref link } => link.eq(id),
- &Link::LinkFrom { ref link } => link.eq(id),
+ Link::Id { link: ref s } => s.eq(id),
+ Link::LinkTo { ref link } => link.eq(id),
+ Link::LinkFrom { ref link } => link.eq(id),
}
}
/// Get the StoreId inside the Link, which is always present
pub fn get_store_id(&self) -> &StoreId {
match self {
- &Link::Id { link: ref s } => s,
- &Link::LinkTo { ref link } => link,
- &Link::LinkFrom { ref link } => link,
+ Link::Id { link: ref s } => s,
+ Link::LinkTo { ref link } => link,
+ Link::LinkFrom { ref link } => link,
}
}
@@ -140,9 +140,9 @@ impl IntoStoreId for Link {
impl AsRef<StoreId> for Link {
fn as_ref(&self) -> &StoreId {
match self {
- &Link::Id { ref link } => &link,
- &Link::LinkTo { ref link } => &link,
- &Link::LinkFrom { ref link } => &link,
+ Link::Id { ref link } => &link,
+ Link::LinkTo { ref link } => &link,
+ Link::LinkFrom { ref link } => &link,
}
}
}