[PR #7144] [MERGED] Apply duration_suboptimal_units lint findings #22083

Closed
opened 2026-04-30 08:25:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/7144
Author: @dfunkt
Created: 4/27/2026
Status: Merged
Merged: 4/28/2026
Merged by: @BlackDex

Base: mainHead: duration-suboptimal-lint


📝 Commits (1)

  • 30ac894 Apply duration_suboptimal_units lint findings

📊 Changes

5 files changed (+5 additions, -4 deletions)

View changed files

📝 Cargo.toml (+1 -0)
📝 src/api/core/sends.rs (+1 -1)
📝 src/api/core/two_factor/webauthn.rs (+1 -1)
📝 src/db/models/attachment.rs (+1 -1)
📝 src/util.rs (+1 -1)

📄 Description

Quote from lint description:
"Using a smaller unit for a duration that is evenly divisible by a larger unit reduces readability. Readers have to mentally convert values, which can be error-prone and makes the code less clear."


🔄 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/dani-garcia/vaultwarden/pull/7144 **Author:** [@dfunkt](https://github.com/dfunkt) **Created:** 4/27/2026 **Status:** ✅ Merged **Merged:** 4/28/2026 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `duration-suboptimal-lint` --- ### 📝 Commits (1) - [`30ac894`](https://github.com/dani-garcia/vaultwarden/commit/30ac89448d34771bd0c86f321829895453f33edb) Apply `duration_suboptimal_units` lint findings ### 📊 Changes **5 files changed** (+5 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.toml` (+1 -0) 📝 `src/api/core/sends.rs` (+1 -1) 📝 `src/api/core/two_factor/webauthn.rs` (+1 -1) 📝 `src/db/models/attachment.rs` (+1 -1) 📝 `src/util.rs` (+1 -1) </details> ### 📄 Description Quote from lint description: "Using a smaller unit for a duration that is evenly divisible by a larger unit reduces readability. Readers have to mentally convert values, which can be error-prone and makes the code less clear." --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-30 08:25:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#22083