From 69dce9ed9f0f2e0be1746f7925d45d33587a59dd Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 11:51:38 +0200 Subject: [PATCH] [No-auto] lib/entry/link: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- lib/entry/libimagentrylink/src/link.rs | 18 +++++++++--------- 1 file 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 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, } } }