v0.3.12-pre.004-fix.001
This commit is contained in:
97
deltas/0.3.12/pre.004-fix.001.md
Normal file
97
deltas/0.3.12/pre.004-fix.001.md
Normal file
@@ -0,0 +1,97 @@
|
||||
<!-- file: deltas/0.3.12/pre.004-fix.001.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.3.12-pre.004-fix.001` — correction du gate Clippy strict
|
||||
|
||||
## Base requise
|
||||
|
||||
```text
|
||||
0.3.12-pre.004
|
||||
workspace.package.version = 0.3.12-pre.4
|
||||
```
|
||||
|
||||
Le gate opérateur communiqué confirme :
|
||||
|
||||
```text
|
||||
Rust rule audit : clean
|
||||
Markdown table audit : clean (340 tables, 806 fichiers)
|
||||
cargo check --workspace : PASS
|
||||
cargo test -p ksp-raw-transaction-lib : PASS
|
||||
cargo test -p ksp-worker-raw-transaction-ingest-lib : PASS
|
||||
```
|
||||
|
||||
Le seul gate rouge est :
|
||||
|
||||
```text
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
```
|
||||
|
||||
avec `clippy::large_enum_variant` et deux occurrences de `clippy::collapsible_if` dans `runtime_resources.rs`.
|
||||
|
||||
## Objectif
|
||||
|
||||
Corriger exclusivement ces trois diagnostics sans `#[allow(...)]`, sans `#[expect(...)]`, sans changer le comportement de hydration et sans avancer le scope de `pre.005`.
|
||||
|
||||
## Version
|
||||
|
||||
```text
|
||||
workspace.package.version = 0.3.12-pre.4.fix.1
|
||||
```
|
||||
|
||||
## Corrections
|
||||
|
||||
`RawTransactionIngestHydrationOutcome::Available` devient :
|
||||
|
||||
```text
|
||||
Available(Box<RawTransactionIngress>)
|
||||
```
|
||||
|
||||
La box ne concerne que ce résultat privé `#[cfg(test)]`; elle supprime la disproportion de taille entre `Available` et `Missing`. Les unit tests déplacent explicitement l'ingress hors de la box avant admission.
|
||||
|
||||
Le contrôle `transaction_index` utilise désormais une chaîne `if let` Rust 2024 unique. Il conserve exactement la règle précédente : un mismatch n'est rejeté que si le signal possède un index et si la réponse HTTP fournit un `SolanaWireField::Value` différent. `Omitted` et `Null` restent acceptés comme absence d'index HTTP comparable.
|
||||
|
||||
## Fichiers ajoutés
|
||||
|
||||
```text
|
||||
deltas/0.3.12/pre.004-fix.001.md
|
||||
```
|
||||
|
||||
## Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-worker-raw-transaction-ingest-lib/src/runtime_resources.rs
|
||||
crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime_resources.rs
|
||||
docs/validation/029-V0_3_12_YELLOWSTONE_HYDRATION_CONTINUITY.md
|
||||
```
|
||||
|
||||
## Fichiers supprimés
|
||||
|
||||
Aucun.
|
||||
|
||||
## Non-changements
|
||||
|
||||
```text
|
||||
aucune API publique
|
||||
aucune dépendance
|
||||
aucun changement de provenance
|
||||
aucune politique retry Worker
|
||||
aucun Block / BlockMeta / Slot
|
||||
aucun source task Yellowstone productif
|
||||
aucune continuité / replay
|
||||
aucun lint neutralisé
|
||||
```
|
||||
|
||||
## Gate opérateur requis
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
python3 scripts/audit_rust_workspace_rules.py
|
||||
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
cargo test -p ksp-raw-transaction-lib
|
||||
cargo test -p ksp-worker-raw-transaction-ingest-lib
|
||||
```
|
||||
|
||||
Après gate vert, la suite reste `pre.005`.
|
||||
Reference in New Issue
Block a user