mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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" }
|
||||
|
@ -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) }
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user