fixing clippy stuff

This commit is contained in:
endernon 2025-01-01 20:49:16 +00:00
parent f6a78a95a5
commit d7793c200a
2 changed files with 17 additions and 52 deletions

63
Cargo.lock generated
View file

@ -172,7 +172,7 @@ dependencies = [
"heck",
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -222,17 +222,6 @@ dependencies = [
"typenum",
]
[[package]]
name = "derive-deref-rs"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb44ba65b4c7afe45d03d8e33ecb53a21c57d0ffff196f04aefa15c43671f8a6"
dependencies = [
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]]
name = "digest"
version = "0.10.7"
@ -251,7 +240,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -650,23 +639,19 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
name = "idmangler-cli"
version = "0.4.2"
dependencies = [
"base64",
"clap",
"derive-deref-rs",
"idmangler-lib",
"reqwest",
"serde",
"serde_json",
"serde_json5",
"thiserror 2.0.9",
"tribool",
]
[[package]]
@ -848,7 +833,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -906,7 +891,7 @@ dependencies = [
"pest_meta",
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -1128,7 +1113,7 @@ checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -1232,17 +1217,6 @@ version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "syn"
version = "1.0.109"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "syn"
version = "2.0.87"
@ -1271,7 +1245,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -1334,7 +1308,7 @@ checksum = "a7c61ec9a6f64d2793d8a45faba21efbe3ced62a886d44c36a009b2b519b4c7e"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -1345,7 +1319,7 @@ checksum = "7b50fa271071aae2e6ee85f842e2e28ba8cd2c5fb67f11fcb1fd70b276f9e7d4"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]
[[package]]
@ -1431,15 +1405,6 @@ dependencies = [
"once_cell",
]
[[package]]
name = "tribool"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e8660361502033a51e119386b47fbb811e5706722f2e91ccf867aa6b2b09f90"
dependencies = [
"serde",
]
[[package]]
name = "try-lock"
version = "0.2.5"
@ -1547,7 +1512,7 @@ dependencies = [
"log",
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
"wasm-bindgen-shared",
]
@ -1582,7 +1547,7 @@ checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
@ -1747,7 +1712,7 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
"synstructure",
]
@ -1768,7 +1733,7 @@ checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
"synstructure",
]
@ -1797,5 +1762,5 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.87",
"syn",
]

View file

@ -117,7 +117,7 @@ fn cook(
) -> Result<(), Errorfr> {
let mut fr_params = FuncParams {
fr_out: out,
fr_debug_mode: &debug_mode,
fr_debug_mode: debug_mode,
fr_ver: ver,
};
@ -236,7 +236,7 @@ fn encode_typedata(general_params: &mut FuncParams, item_type_deser: ItemTypeDes
.encode(general_params.fr_ver, general_params.fr_out)
.unwrap();
}
fn encode_namedata(general_params: &mut FuncParams, real_name: &String) {
fn encode_namedata(general_params: &mut FuncParams, real_name: &str) {
// ENCODE: NameData
NameData(real_name.trim().to_string())
.encode(general_params.fr_ver, general_params.fr_out)
@ -301,7 +301,7 @@ fn encode_powder(general_params: &mut FuncParams, real_powders: Vec<Powder>) {
dbg!(&powdervec);
}
let powderlimitfr: u8 = (powdervec.len() as u8).min(255); // min of the current number of powders and 255 (if you have over 255 powders stuff breaks)
let powderlimitfr: u8 = powdervec.len() as u8; // min of the current number of powders and 255 (if you have over 255 powders stuff breaks)
// ENCODE: PowderData
// only occurs if the powders array is present and the powder limit is also present