fmt
This commit is contained in:
parent
cf348c3ea4
commit
d1faad314b
14 changed files with 55 additions and 35 deletions
|
|
@ -673,14 +673,18 @@ fn extract_price_history(df: &DataFrame) -> Result<Vec<Vec<PriceHistoryPoint>>>
|
|||
let dates_s = structs
|
||||
.field_by_name("date")
|
||||
.context("Missing 'date' field in price_history struct")?;
|
||||
let date_ca = dates_s.str().context("price_history.date is not a string")?;
|
||||
let date_ca = dates_s
|
||||
.str()
|
||||
.context("price_history.date is not a string")?;
|
||||
let prices_s = structs
|
||||
.field_by_name("price")
|
||||
.context("Missing 'price' field in price_history struct")?;
|
||||
let prices_i64 = prices_s
|
||||
.cast(&DataType::Int64)
|
||||
.context("price_history.price is not castable to Int64")?;
|
||||
let price_ca = prices_i64.i64().context("price_history.price is not Int64")?;
|
||||
let price_ca = prices_i64
|
||||
.i64()
|
||||
.context("price_history.price is not Int64")?;
|
||||
let reasons_s = structs
|
||||
.field_by_name("reason")
|
||||
.context("Missing 'reason' field in price_history struct")?;
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ async fn static_cache_headers(
|
|||
response
|
||||
}
|
||||
|
||||
|
||||
async fn security_headers(
|
||||
request: axum::extract::Request,
|
||||
next: middleware::Next,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue