mirror of
https://github.com/roapi/roapi.git
synced 2026-06-11 21:00:56 +08:00
fix linter errors from new rustc release
This commit is contained in:
parent
d53c417d14
commit
5972467cbb
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -2974,7 +2974,7 @@ dependencies = [
|
||||
"env_logger 0.9.0",
|
||||
"hyper",
|
||||
"log",
|
||||
"pin-project",
|
||||
"pin-project-lite",
|
||||
"reqwest",
|
||||
"serde",
|
||||
"serde_derive",
|
||||
|
||||
@ -46,10 +46,10 @@ pub async fn to_delta_table(
|
||||
delta_table.table_uri,
|
||||
))),
|
||||
_ => {
|
||||
return Err(ColumnQError::InvalidUri(format!(
|
||||
Err(ColumnQError::InvalidUri(format!(
|
||||
"Scheme in table uri not supported for delta table: {}",
|
||||
delta_table.table_uri,
|
||||
)));
|
||||
)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ axum = { version = "0.5", features = ["default", "http2"] }
|
||||
tower-http = { version = "0", features = ["cors"] }
|
||||
tower-layer = "0"
|
||||
tracing = "0"
|
||||
pin-project = "1"
|
||||
pin-project-lite = "0"
|
||||
async-trait = "0"
|
||||
|
||||
env_logger = "0"
|
||||
|
||||
@ -5,7 +5,7 @@ use axum::http::Response;
|
||||
use hyper::service::Service;
|
||||
use log::error;
|
||||
use log::info;
|
||||
use pin_project::pin_project;
|
||||
use pin_project_lite::pin_project;
|
||||
use std::future::Future;
|
||||
use std::pin::Pin;
|
||||
use std::task::Context;
|
||||
@ -73,13 +73,14 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[pin_project]
|
||||
pub struct LoggerResponseFuture<F> {
|
||||
#[pin]
|
||||
response_future: F,
|
||||
method: Method,
|
||||
uri: Uri,
|
||||
start: Option<Instant>,
|
||||
pin_project! {
|
||||
pub struct LoggerResponseFuture<F> {
|
||||
#[pin]
|
||||
response_future: F,
|
||||
method: Method,
|
||||
uri: Uri,
|
||||
start: Option<Instant>,
|
||||
}
|
||||
}
|
||||
|
||||
impl<F, Body, E> Future for LoggerResponseFuture<F>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user