clippy >:(

This commit is contained in:
Maybe Waffle 2022-08-28 15:15:07 +04:00
parent c8514823d7
commit 7ad17c41ba

View file

@ -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())
}
}