Remove remaining instances of router
Co-Authored-By: Nathan Sobo <nathan@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
Max Brunsfeld
parent
d398b96f56
commit
5338b30c00
+3
-5
@@ -82,14 +82,12 @@ impl<T: Rng> Iterator for RandomCharIter<T> {
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn log_async_errors<F>(f: F) -> impl Future<Output = ()>
|
||||
pub async fn log_async_errors<F>(f: F)
|
||||
where
|
||||
F: Future<Output = anyhow::Result<()>>,
|
||||
{
|
||||
async {
|
||||
if let Err(error) = f.await {
|
||||
log::error!("{}", error)
|
||||
}
|
||||
if let Err(error) = f.await {
|
||||
log::error!("{}", error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user