From 7ad17c41ba16c79f4bfa22364597d21ee99b02ef Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Sun, 28 Aug 2022 15:15:07 +0400 Subject: [PATCH] clippy >:( --- src/attr.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/attr.rs b/src/attr.rs index 1c02d748..dd4b9493 100644 --- a/src/attr.rs +++ b/src/attr.rs @@ -75,7 +75,10 @@ impl Parse for Attr { impl Attr { pub(crate) fn span(&self) -> Span { - self.key.span().join(self.value.span()).unwrap_or(self.key.span()) + self.key + .span() + .join(self.value.span()) + .unwrap_or_else(|| self.key.span()) } }