various: auto-fix clippy warnings
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia8f0b1ebd657bb9cdebef9d62413f45a6a6a6964
This commit is contained in:
parent
49545fdb6b
commit
b1f3b4b1ff
6 changed files with 8 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ pub struct RouteEntry {
|
|||
}
|
||||
|
||||
impl RouteEntry {
|
||||
#[must_use]
|
||||
pub fn is_valid(&self) -> bool {
|
||||
Utc::now() < self.ttl
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue