Skip to content

Commit

Permalink
comments for allow(dead_code)
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Dec 7, 2021
1 parent 13e1b0e commit c279d57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/bin/zksync_api/src/api_server/rest/v02/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ mod tests {
})))
}

// While the values of the PendingOpsFlattenRequest's fields are never directly
// used in the tests, we still need them to specify the JSON format of the `unconfirmed_ops` endpoint input in tests.
#[derive(Debug, Deserialize)]
#[allow(dead_code)]
struct PendingOpsFlattenRequest {
Expand Down
2 changes: 2 additions & 0 deletions core/bin/zksync_api/src/bin/dev-ticker-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ async fn handle_coinmarketcap_token_price_query(
#[derive(Debug, Deserialize)]
struct Token {
pub address: Address,
// While never used directly, it is better to keep this field here so that it is easy to know what fields are
// available for the test tokens.
#[allow(dead_code)]
pub decimals: u8,
pub symbol: String,
Expand Down

0 comments on commit c279d57

Please sign in to comment.