Commit ef0a5e8
committed
fix: feature-gate ai_matches to eliminate unused assignment warning
Fixed compiler warning "value assigned to ai_matches is never read" by
properly feature-gating both the declaration and accumulation of
ai_matches to match its usage in the logging block.
The variable was:
- Declared unconditionally at line 988
- Accumulated unconditionally at line 1109
- Used only inside #[cfg(feature = "ai-enhanced")] at line 1193
Fix: Added #[cfg(feature = "ai-enhanced")] to both declaration and
accumulation so the variable only exists when the feature is enabled.
This eliminates the warning without changing behavior.1 parent 5f9808c commit ef0a5e8
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
| |||
1106 | 1107 | | |
1107 | 1108 | | |
1108 | 1109 | | |
1109 | | - | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1110 | 1114 | | |
1111 | 1115 | | |
1112 | 1116 | | |
| |||
0 commit comments