Skip to content

Commit 19ebd97

Browse files
committed
Fix rustfmt issue
1 parent 51bb486 commit 19ebd97

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,17 @@ pub type Extensions = typemap::TypeMap;
8787

8888
pub trait RequestExt {
8989
/// The elapsed time since the start of the request (headers received)
90-
///
90+
///
9191
/// # Panics
92-
///
92+
///
9393
/// This method may panic if the server does not add `StartInstant` to the
9494
/// request extensions, or if it has been removed by the application.
9595
fn elapsed(&self) -> Duration {
96-
self.extensions().find::<StartInstant>().unwrap().0.elapsed()
96+
self.extensions()
97+
.find::<StartInstant>()
98+
.unwrap()
99+
.0
100+
.elapsed()
97101
}
98102

99103
/// The version of HTTP being used

0 commit comments

Comments
 (0)