refactor: Fix Rust edition, remove duplicate lint rule, and improve error handling in charging-engine and packet-gateway

- Change Rust edition from "2026" to "2024" in workspace Cargo.toml
- Remove duplicate expect_used lint rule from workspace lints
- Prefix unused account variable with underscore in calculate_usage_cost
- Split CARGO_MANIFEST_DIR assignment into separate variable in run_migrations
- Clone plan_id before moving plan in add_rating_plan handler
- Replace expect() with unwrap() in governor
This commit is contained in:
nutcas3
2026-04-30 03:17:46 +03:00
parent cd392894df
commit 9b64366e25
6 changed files with 12 additions and 11 deletions
+1 -2
View File
@@ -8,7 +8,7 @@ resolver = "2"
[workspace.package]
version = "1.0.0"
authors = ["TaaS Team <[email protected]>"]
edition = "2026"
edition = "2024"
rust-version = "1.94"
license = "MIT"
@@ -27,7 +27,6 @@ unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unwrap_in_result = "deny"
expect_used = "deny"
unimplemented = "deny"
todo = "warn"