[PR #1305] refactor(cargo): upgrade to rust edition 2024 #1314

Open
opened 2026-01-05 14:54:51 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1305
Author: @LGUG2Z
Created: 2/28/2025
Status: 🔄 Open

Base: masterHead: feature/rust-2024


📝 Commits (1)

  • c07689d refactor(cargo): upgrade to rust edition 2024

📊 Changes

63 files changed (+815 additions, -684 deletions)

View changed files

📝 komorebi-bar/Cargo.toml (+1 -1)
📝 komorebi-bar/src/bar.rs (+19 -13)
📝 komorebi-bar/src/battery.rs (+2 -2)
📝 komorebi-bar/src/config.rs (+4 -2)
📝 komorebi-bar/src/cpu.rs (+1 -1)
📝 komorebi-bar/src/date.rs (+1 -1)
📝 komorebi-bar/src/keyboard.rs (+1 -1)
📝 komorebi-bar/src/komorebi.rs (+10 -6)
📝 komorebi-bar/src/komorebi_layout.rs (+2 -2)
📝 komorebi-bar/src/main.rs (+11 -9)
📝 komorebi-bar/src/media.rs (+2 -2)
📝 komorebi-bar/src/memory.rs (+1 -1)
📝 komorebi-bar/src/network.rs (+1 -1)
📝 komorebi-bar/src/render.rs (+1 -1)
📝 komorebi-bar/src/storage.rs (+1 -1)
📝 komorebi-bar/src/time.rs (+1 -1)
📝 komorebi-bar/src/update.rs (+1 -1)
📝 komorebi-client/Cargo.toml (+1 -1)
📝 komorebi-client/src/lib.rs (+22 -22)
📝 komorebi-gui/Cargo.toml (+1 -1)

...and 43 more files

📄 Description

Followed the recommended steps:

1.    Run cargo update to update your dependencies to the latest versions.
2.    Run cargo fix --edition
3.    Edit Cargo.toml and set the edition field to the next edition, for example edition = "2024"
4.    Run cargo build or cargo test to verify the fixes worked.
5.    Run cargo fmt to reformat your project.

🔄 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/LGUG2Z/komorebi/pull/1305 **Author:** [@LGUG2Z](https://github.com/LGUG2Z) **Created:** 2/28/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `feature/rust-2024` --- ### 📝 Commits (1) - [`c07689d`](https://github.com/LGUG2Z/komorebi/commit/c07689de908fda9ed64060c8535f92726c099bd5) refactor(cargo): upgrade to rust edition 2024 ### 📊 Changes **63 files changed** (+815 additions, -684 deletions) <details> <summary>View changed files</summary> 📝 `komorebi-bar/Cargo.toml` (+1 -1) 📝 `komorebi-bar/src/bar.rs` (+19 -13) 📝 `komorebi-bar/src/battery.rs` (+2 -2) 📝 `komorebi-bar/src/config.rs` (+4 -2) 📝 `komorebi-bar/src/cpu.rs` (+1 -1) 📝 `komorebi-bar/src/date.rs` (+1 -1) 📝 `komorebi-bar/src/keyboard.rs` (+1 -1) 📝 `komorebi-bar/src/komorebi.rs` (+10 -6) 📝 `komorebi-bar/src/komorebi_layout.rs` (+2 -2) 📝 `komorebi-bar/src/main.rs` (+11 -9) 📝 `komorebi-bar/src/media.rs` (+2 -2) 📝 `komorebi-bar/src/memory.rs` (+1 -1) 📝 `komorebi-bar/src/network.rs` (+1 -1) 📝 `komorebi-bar/src/render.rs` (+1 -1) 📝 `komorebi-bar/src/storage.rs` (+1 -1) 📝 `komorebi-bar/src/time.rs` (+1 -1) 📝 `komorebi-bar/src/update.rs` (+1 -1) 📝 `komorebi-client/Cargo.toml` (+1 -1) 📝 `komorebi-client/src/lib.rs` (+22 -22) 📝 `komorebi-gui/Cargo.toml` (+1 -1) _...and 43 more files_ </details> ### 📄 Description Followed the recommended steps: ``` 1. Run cargo update to update your dependencies to the latest versions. 2. Run cargo fix --edition 3. Edit Cargo.toml and set the edition field to the next edition, for example edition = "2024" 4. Run cargo build or cargo test to verify the fixes worked. 5. Run cargo fmt to reformat your project. ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-01-05 14:54:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1314