1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-22 21:55:10 +02:00

improve code readability

This commit is contained in:
Rob Ede
2021-01-04 00:49:02 +00:00
parent e1683313ec
commit 21f6c9d7a5
34 changed files with 238 additions and 230 deletions

View File

@@ -236,7 +236,7 @@ where
fut: self.service.call(req),
format: None,
time: OffsetDateTime::now_utc(),
_t: PhantomData,
_phantom: PhantomData,
}
} else {
let now = OffsetDateTime::now_utc();
@@ -249,7 +249,7 @@ where
fut: self.service.call(req),
format: Some(format),
time: now,
_t: PhantomData,
_phantom: PhantomData,
}
}
}
@@ -266,7 +266,7 @@ where
fut: S::Future,
time: OffsetDateTime,
format: Option<Format>,
_t: PhantomData<B>,
_phantom: PhantomData<B>,
}
impl<S, B> Future for LoggerResponse<S, B>
@@ -522,7 +522,7 @@ impl FormatText {
};
*self = FormatText::Str(s.to_string())
}
_ => (),
_ => {},
}
}
@@ -587,7 +587,7 @@ impl FormatText {
*self = s;
}
_ => (),
_ => {},
}
}
}