[PR #1574] [CLOSED] Fix clippy complaint #2430

Closed
opened 2026-03-16 08:53:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/1574
Author: @pinkisemils
Created: 10/25/2021
Status: Closed

Base: mainHead: fix-cleanliness


📝 Commits (1)

📊 Changes

1 file changed (+2 additions, -5 deletions)

View changed files

📝 crates/resolver/src/dns_lru.rs (+2 -5)

📄 Description

The current main code is failing clippy due to returning the same value at both ends of an if-else block. Here's the fix for that.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/1574 **Author:** [@pinkisemils](https://github.com/pinkisemils) **Created:** 10/25/2021 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-cleanliness` --- ### 📝 Commits (1) - [`885a713`](https://github.com/hickory-dns/hickory-dns/commit/885a713185697d73e0f501dc44706ea5cf692183) Fix clippy complaint ### 📊 Changes **1 file changed** (+2 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/resolver/src/dns_lru.rs` (+2 -5) </details> ### 📄 Description The current main code is failing clippy due to returning the same value at both ends of an if-else block. Here's the fix for that. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 08:53:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#2430
No description provided.