Skip to content

Commit ada0506

Browse files
committed
unify
1 parent 0b9a547 commit ada0506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtimes/core/src/api/schema/header.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fn to_reqwest_header_value(value: &PValue) -> APIResult<ReqwestHeaders> {
291291
details: None,
292292
})?,
293293

294-
BigInt(bi) => reqwest::header::HeaderValue::from_str(&bi).map_err(|e| api::Error {
294+
BigInt(bi) => reqwest::header::HeaderValue::from_str(bi).map_err(|e| api::Error {
295295
code: api::ErrCode::InvalidArgument,
296296
message: "unable to convert bigint to header value".to_string(),
297297
internal_message: Some(format!("unable to convert bigint to header value: {}", e)),
@@ -376,7 +376,7 @@ fn to_axum_header_value(value: &PValue) -> APIResult<AxumHeaders> {
376376
details: None,
377377
})?,
378378

379-
BigInt(str) => axum::http::HeaderValue::from_str(str).map_err(|e| api::Error {
379+
BigInt(bi) => axum::http::HeaderValue::from_str(bi).map_err(|e| api::Error {
380380
code: api::ErrCode::InvalidArgument,
381381
message: "unable to convert bigint to header value".to_string(),
382382
internal_message: Some(format!("unable to convert bigint to header value: {}", e)),

0 commit comments

Comments
 (0)