refactor: Use itertools to simplify code

This commit is contained in:
2025-09-17 03:26:17 +02:00
parent a5f4b67216
commit 326af7ea83
3 changed files with 23 additions and 14 deletions

16
Cargo.lock generated
View File

@@ -29,6 +29,12 @@ version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8975ffdaa0ef3661bfe02dbdcc06c9f829dfafe6a3c474de366a8d5e44276921"
[[package]]
name = "either"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "encode_unicode"
version = "1.0.0"
@@ -74,6 +80,15 @@ dependencies = [
"similar",
]
[[package]]
name = "itertools"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.15"
@@ -100,6 +115,7 @@ name = "lua_typed_macro"
version = "0.1.0"
dependencies = [
"convert_case",
"itertools",
"proc-macro2",
"quote",
"syn",