mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
chore: apply rustfmt to all crates (#917)
This commit is contained in:
@@ -15,7 +15,8 @@ impl<T> BoxedPark<T> {
|
||||
}
|
||||
|
||||
impl<T: Park + Send> Park for BoxedPark<T>
|
||||
where T::Error: Error,
|
||||
where
|
||||
T::Error: Error,
|
||||
{
|
||||
type Unpark = BoxUnpark;
|
||||
type Error = ();
|
||||
@@ -25,16 +26,20 @@ where T::Error: Error,
|
||||
}
|
||||
|
||||
fn park(&mut self) -> Result<(), Self::Error> {
|
||||
self.0.park()
|
||||
.map_err(|e| {
|
||||
warn!("calling `park` on worker thread errored -- shutting down thread: {}", e);
|
||||
})
|
||||
self.0.park().map_err(|e| {
|
||||
warn!(
|
||||
"calling `park` on worker thread errored -- shutting down thread: {}",
|
||||
e
|
||||
);
|
||||
})
|
||||
}
|
||||
|
||||
fn park_timeout(&mut self, duration: Duration) -> Result<(), Self::Error> {
|
||||
self.0.park_timeout(duration)
|
||||
.map_err(|e| {
|
||||
warn!("calling `park` on worker thread errored -- shutting down thread: {}", e);
|
||||
})
|
||||
self.0.park_timeout(duration).map_err(|e| {
|
||||
warn!(
|
||||
"calling `park` on worker thread errored -- shutting down thread: {}",
|
||||
e
|
||||
);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user