fix linter errors from new rustc release

This commit is contained in:
Qingping Hou 2022-08-13 11:43:16 -07:00
parent d53c417d14
commit 5972467cbb
4 changed files with 13 additions and 12 deletions

2
Cargo.lock generated
View File

@ -2974,7 +2974,7 @@ dependencies = [
"env_logger 0.9.0",
"hyper",
"log",
"pin-project",
"pin-project-lite",
"reqwest",
"serde",
"serde_derive",

View File

@ -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,
)));
)))
}
}
}

View File

@ -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"

View File

@ -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>