mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-31 05:49:23 -05:00
[PR #7144] [MERGED] Apply duration_suboptimal_units lint findings
#22083
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:duration-suboptimal-lint📝 Commits (1)
30ac894Applyduration_suboptimal_unitslint 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.