[PR #1061] [MERGED] Use strip_prefix() instead of trim_start_matches() as appropriate #3545

Closed
opened 2025-10-09 18:25:23 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/1061
Author: @jjlin
Created: 7/21/2020
Status: Merged
Merged: 7/21/2020
Merged by: @dani-garcia

Base: masterHead: use-strip-prefix


📝 Commits (1)

  • de70fbf Use strip_prefix() instead of trim_start_matches() as appropriate

📊 Changes

1 file changed (+3 additions, -6 deletions)

View changed files

📝 src/util.rs (+3 -6)

📄 Description

As of Rust 1.45.0, strip_prefix() is now stable.


🔄 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/1061 **Author:** [@jjlin](https://github.com/jjlin) **Created:** 7/21/2020 **Status:** ✅ Merged **Merged:** 7/21/2020 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `master` ← **Head:** `use-strip-prefix` --- ### 📝 Commits (1) - [`de70fbf`](https://github.com/dani-garcia/vaultwarden/commit/de70fbf88a762836bc7c97da9474870172b45221) Use `strip_prefix()` instead of `trim_start_matches()` as appropriate ### 📊 Changes **1 file changed** (+3 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src/util.rs` (+3 -6) </details> ### 📄 Description As of Rust 1.45.0, `strip_prefix()` is now stable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2025-10-09 18:25:23 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#3545