From e4d3b6167a3cd352c9e98397b5400c435af87005 Mon Sep 17 00:00:00 2001 From: Geoffry Song Date: Mon, 29 Apr 2024 10:16:56 -0700 Subject: [PATCH] fmt --- src/error.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 02d91cbe..69831f3c 100644 --- a/src/error.rs +++ b/src/error.rs @@ -223,7 +223,9 @@ mod tests { fn io_error_source() { let err = Error::from_io(io::Error::new(io::ErrorKind::BrokenPipe, "hi")); let source = err.source().expect("io error should have source"); - let io_err = source.downcast_ref::().expect("should be io error"); + let io_err = source + .downcast_ref::() + .expect("should be io error"); assert_eq!(io_err.kind(), io::ErrorKind::BrokenPipe); } }