chore: upgrade rust version to 1.70 (#2749)

* chore: upgrade rust version to 1.70

* ci: fix wanrings

* ci: fix clippy warings
This commit is contained in:
Nathan.fooo
2023-06-09 22:23:07 +08:00
committed by GitHub
parent 133ac72317
commit ab5a3dae3c
57 changed files with 102 additions and 263 deletions

View File

@ -6,7 +6,7 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
chrono = "0.4.23"
chrono = { version = "0.4.22", default-features = false, features = ["clock"] }
bytes = { version = "1.4" }
pin-project = "1.0.12"
futures-core = { version = "0.3" }

View File

@ -44,9 +44,7 @@ impl<T, E> FutureResult<T, E> {
where
F: Future<Output = Result<T, E>> + Send + Sync + 'static,
{
Self {
fut: Box::pin(async { f.await }),
}
Self { fut: Box::pin(f) }
}
}