Skip to content

Commit

Permalink
Update stats to support rust-clippy v1.72
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov committed Aug 28, 2023
1 parent 6025dd6 commit 89c2c20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions stats/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"stats",
"stats-proto",
Expand Down
8 changes: 4 additions & 4 deletions stats/stats/src/charts/lines/native_coin_supply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl ChartPartialUpdater for NativeCoinSupply {
let stmnt = match last_row {
Some(row) => Statement::from_sql_and_values(
DbBackend::Postgres,
r#"
r"
SELECT date, value FROM
(
SELECT
Expand All @@ -40,12 +40,12 @@ impl ChartPartialUpdater for NativeCoinSupply {
GROUP BY day
) as intermediate
WHERE value is not NULL;
"#,
",
vec![ETH.into(), row.date.into()],
),
None => Statement::from_sql_and_values(
DbBackend::Postgres,
r#"
r"
SELECT date, value FROM
(
SELECT
Expand All @@ -61,7 +61,7 @@ impl ChartPartialUpdater for NativeCoinSupply {
GROUP BY day
) as intermediate
WHERE value is not NULL;
"#,
",
vec![ETH.into()],
),
};
Expand Down

0 comments on commit 89c2c20

Please sign in to comment.