state: caching: order-cache: Build new filter-based cache interface #4055
Annotations
5 errors and 5 warnings
associated function `is_task_queue_free` is never used:
state/src/interface/order_book.rs#L366
error: associated function `is_task_queue_free` is never used
--> state/src/interface/order_book.rs:366:8
|
363 | impl StateInner {
| --------------- associated function in this implementation
...
366 | fn is_task_queue_free<T: TransactionKind>(
| ^^^^^^^^^^^^^^^^^^
|
field `order_cache` is never read:
state/src/interface/mod.rs#L119
error: field `order_cache` is never read
--> state/src/interface/mod.rs:119:16
|
115 | pub struct StateInner {
| ---------- field in this struct
...
119 | pub(crate) order_cache: Arc<OrderBookCache>,
| ^^^^^^^^^^^
|
= note: `StateInner` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
|
unused variable: `matchable_amount`:
state/src/caching/order_cache.rs#L81
error: unused variable: `matchable_amount`
--> state/src/caching/order_cache.rs:81:74
|
81 | pub fn add_order_blocking(&self, id: OrderIdentifier, order: &Order, matchable_amount: Amount) {
| ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_matchable_amount`
|
unused variable: `order`:
state/src/caching/order_cache.rs#L81
error: unused variable: `order`
--> state/src/caching/order_cache.rs:81:59
|
81 | pub fn add_order_blocking(&self, id: OrderIdentifier, order: &Order, matchable_amount: Amount) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_order`
|
unused variable: `id`:
state/src/caching/order_cache.rs#L81
error: unused variable: `id`
--> state/src/caching/order_cache.rs:81:38
|
81 | pub fn add_order_blocking(&self, id: OrderIdentifier, order: &Order, matchable_amount: Amount) {
| ^^ help: if this is intentional, prefix it with an underscore: `_id`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
|
format
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
format
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|