From 0cfd9cfdf536a812d2c30578c814179f7e17363a Mon Sep 17 00:00:00 2001 From: Chojan Shang Date: Sun, 23 Jun 2024 12:25:05 +0800 Subject: [PATCH] feat: make cargo fmt happy Signed-off-by: Chojan Shang --- core/src/layers/async_backtrace.rs | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/core/src/layers/async_backtrace.rs b/core/src/layers/async_backtrace.rs index f144453a148c..4bc09e67c7be 100644 --- a/core/src/layers/async_backtrace.rs +++ b/core/src/layers/async_backtrace.rs @@ -81,9 +81,10 @@ impl LayeredAccess for AsyncBacktraceAccessor { #[async_backtrace::framed] async fn write(&self, path: &str, args: OpWrite) -> Result<(RpWrite, Self::Writer)> { - self.inner.write(path, args) - .map(|v| v.map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r)))) - .await + self.inner + .write(path, args) + .map(|v| v.map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r)))) + .await } #[async_backtrace::framed] @@ -108,9 +109,10 @@ impl LayeredAccess for AsyncBacktraceAccessor { #[async_backtrace::framed] async fn list(&self, path: &str, args: OpList) -> Result<(RpList, Self::Lister)> { - self.inner.list(path, args) - .map(|v| v.map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r)))) - .await + self.inner + .list(path, args) + .map(|v| v.map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r)))) + .await } #[async_backtrace::framed] @@ -124,15 +126,21 @@ impl LayeredAccess for AsyncBacktraceAccessor { } fn blocking_read(&self, path: &str, args: OpRead) -> Result<(RpRead, Self::BlockingReader)> { - self.inner.blocking_read(path, args).map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r))) + self.inner + .blocking_read(path, args) + .map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r))) } fn blocking_write(&self, path: &str, args: OpWrite) -> Result<(RpWrite, Self::BlockingWriter)> { - self.inner.blocking_write(path, args).map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r))) + self.inner + .blocking_write(path, args) + .map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r))) } fn blocking_list(&self, path: &str, args: OpList) -> Result<(RpList, Self::BlockingLister)> { - self.inner.blocking_list(path, args).map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r))) + self.inner + .blocking_list(path, args) + .map(|(rp, r)| (rp, AsyncBacktraceWrapper::new(r))) } }