mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-19 12:25:37 +02:00
Expose factory traits and some clippy fixes (#983)
This commit is contained in:
committed by
Nikolay Kim
parent
c01611d8b5
commit
32718b7e31
@@ -415,9 +415,9 @@ impl FormatText {
|
||||
))
|
||||
};
|
||||
}
|
||||
FormatText::UrlPath => *self = FormatText::Str(format!("{}", req.path())),
|
||||
FormatText::UrlPath => *self = FormatText::Str(req.path().to_string()),
|
||||
FormatText::RequestTime => {
|
||||
*self = FormatText::Str(format!("{}", now.rfc3339()))
|
||||
*self = FormatText::Str(now.rfc3339().to_string())
|
||||
}
|
||||
FormatText::RequestHeader(ref name) => {
|
||||
let s = if let Some(val) = req.headers().get(name) {
|
||||
|
Reference in New Issue
Block a user