[PR #196] [MERGED] Misc tweaks #201

Closed
opened 2026-02-27 10:16:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/matze/wastebin/pull/196
Author: @cgzones
Created: 12/21/2025
Status: Merged
Merged: 12/24/2025
Merged by: @matze

Base: masterHead: misc


📝 Commits (8)

  • 7f8c4ee Simplify URL creation
  • c273cf3 Use .to_string() instead of bare format!
  • f1e7f14 Reuse string memory for HeaderValue
  • 01a0852 Rename syntaxes of Highlighter and tweak sorting
  • 66f1237 Avoid unreachable branch
  • f51bb44 Extract common tail function call from if-else branches
  • 70e66d7 Preallocate string capacity to minimize intermediate allocations
  • 8bf8bb9 Use format arguments instead to merge string formatting

📊 Changes

4 files changed (+39 additions, -46 deletions)

View changed files

📝 crates/wastebin_highlight/src/highlight.rs (+20 -29)
📝 crates/wastebin_highlight/src/theme.rs (+9 -10)
📝 crates/wastebin_server/src/handlers/download.rs (+2 -2)
📝 crates/wastebin_server/src/handlers/insert/form.rs (+8 -5)

📄 Description

No description provided


🔄 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/matze/wastebin/pull/196 **Author:** [@cgzones](https://github.com/cgzones) **Created:** 12/21/2025 **Status:** ✅ Merged **Merged:** 12/24/2025 **Merged by:** [@matze](https://github.com/matze) **Base:** `master` ← **Head:** `misc` --- ### 📝 Commits (8) - [`7f8c4ee`](https://github.com/matze/wastebin/commit/7f8c4ee79784ec7ae5983d40ad309e337986e7ea) Simplify URL creation - [`c273cf3`](https://github.com/matze/wastebin/commit/c273cf3ba1a5bd87825c6f7e206ad0a382ac2d4c) Use .to_string() instead of bare format! - [`f1e7f14`](https://github.com/matze/wastebin/commit/f1e7f141d6e57805861425147657c8c865e96969) Reuse string memory for HeaderValue - [`01a0852`](https://github.com/matze/wastebin/commit/01a08529320b15d4c740f2ac019bfd23f03d7cc1) Rename syntaxes of Highlighter and tweak sorting - [`66f1237`](https://github.com/matze/wastebin/commit/66f1237b4a832fef5529a781d6b10ba84c26ec0a) Avoid unreachable branch - [`f51bb44`](https://github.com/matze/wastebin/commit/f51bb44e428d3ce1874172239f3f8d6de0943e82) Extract common tail function call from if-else branches - [`70e66d7`](https://github.com/matze/wastebin/commit/70e66d79fceea1a5f7cca67dea812e022180c615) Preallocate string capacity to minimize intermediate allocations - [`8bf8bb9`](https://github.com/matze/wastebin/commit/8bf8bb90c5f562e84b9ad21cdc24ef24f89d55d4) Use format arguments instead to merge string formatting ### 📊 Changes **4 files changed** (+39 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `crates/wastebin_highlight/src/highlight.rs` (+20 -29) 📝 `crates/wastebin_highlight/src/theme.rs` (+9 -10) 📝 `crates/wastebin_server/src/handlers/download.rs` (+2 -2) 📝 `crates/wastebin_server/src/handlers/insert/form.rs` (+8 -5) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem closed this issue 2026-02-27 10:16:09 +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/wastebin-matze#201
No description provided.