mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
clippy >:(
This commit is contained in:
parent
c8514823d7
commit
7ad17c41ba
1 changed files with 4 additions and 1 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue