v0.2.11-pre.002-fix.002
This commit is contained in:
93
deltas/0.2.11/pre.002-fix.002.md
Normal file
93
deltas/0.2.11/pre.002-fix.002.md
Normal file
@@ -0,0 +1,93 @@
|
||||
<!-- file: deltas/0.2.11/pre.002-fix.002.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.2.11-pre.002-fix.002` — conformité Clippy `implicit_return`
|
||||
|
||||
## 1. Base requise
|
||||
|
||||
Ce delta s'applique après :
|
||||
|
||||
```text
|
||||
v0.2.10
|
||||
+ 0.2.11-pre.001
|
||||
+ 0.2.11-pre.001-fix.001
|
||||
+ 0.2.11-pre.002
|
||||
+ 0.2.11-pre.002-fix.001
|
||||
```
|
||||
|
||||
La version Cargo attendue avant application est :
|
||||
|
||||
```text
|
||||
0.2.11-pre.2.fix.1
|
||||
```
|
||||
|
||||
## 2. Motif du correctif
|
||||
|
||||
La validation opérateur de `pre.002-fix.001` est propre pour `cargo fmt`, les audits Rust/Markdown et `cargo check --workspace`. Le test ciblé `cargo test -p ksp-offchain-transport-lib` passe également avec 13 tests réussis.
|
||||
|
||||
Le gate :
|
||||
|
||||
```bash
|
||||
cargo clippy --workspace --all-targets
|
||||
```
|
||||
|
||||
échoue toutefois sur un unique diagnostic dans `crates/ksp-offchain-transport-lib/tests/dependency_boundary.rs` :
|
||||
|
||||
```text
|
||||
clippy::implicit-return
|
||||
```
|
||||
|
||||
La closure passée à `Iterator::any` doit utiliser un `return` explicite conformément à la configuration Clippy du workspace.
|
||||
|
||||
## 3. Correction
|
||||
|
||||
Le canari de dépendance conserve exactement la même vérification — absence d'une dépendance directe `tracing = ...` — mais adopte la forme KSP déjà utilisée dans d'autres tests :
|
||||
|
||||
```rust
|
||||
|line| return line.trim_start().starts_with("tracing =")
|
||||
```
|
||||
|
||||
Aucune logique runtime, aucun contrat public et aucune taxonomie de module ne sont modifiés.
|
||||
|
||||
## 4. Version technique
|
||||
|
||||
Comme le correctif modifie un fichier Rust, `VER-ID-007` et `VER-ID-010` imposent la synchronisation du workspace sur :
|
||||
|
||||
```text
|
||||
0.2.11-pre.2.fix.2
|
||||
```
|
||||
|
||||
Le `Cargo.toml` racine est donc modifié dans ce delta.
|
||||
|
||||
## 5. Validations opérateur demandées
|
||||
|
||||
```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/0.2.11
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets
|
||||
cargo test -p ksp-offchain-transport-lib
|
||||
cargo test --workspace
|
||||
```
|
||||
|
||||
Le gate de sortie exige notamment un `cargo clippy --workspace --all-targets` sans warning ni erreur.
|
||||
|
||||
## 6. Scope inchangé
|
||||
|
||||
`pre.002-fix.002` ne fait pas avancer `pre.003`. Aucun client HTTP, aucun limiter actif, aucun adapter provider et aucune nouvelle dépendance réseau ne sont introduits.
|
||||
|
||||
## 7. Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-offchain-transport-lib/tests/dependency_boundary.rs
|
||||
docs/plans/018-V0_2_11_OFFCHAIN_PRICE_TRANSPORT_PLAN.md
|
||||
docs/validation/014-V0_2_11_OFFCHAIN_PRICE_TRANSPORT.md
|
||||
```
|
||||
|
||||
## 8. Fichier ajouté
|
||||
|
||||
```text
|
||||
deltas/0.2.11/pre.002-fix.002.md
|
||||
```
|
||||
Reference in New Issue
Block a user