1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 08:45:10 +02:00
This commit is contained in:
Rob Ede
2021-08-13 18:49:58 +01:00
parent a0c0bff944
commit 5f412c67db
12 changed files with 19 additions and 18 deletions

View File

@ -553,7 +553,7 @@ impl FormatText {
*self = FormatText::Str(s.to_string());
}
FormatText::RemoteAddr => {
let s = if let Some(ref peer) = req.connection_info().remote_addr() {
let s = if let Some(peer) = req.connection_info().remote_addr() {
FormatText::Str((*peer).to_string())
} else {
FormatText::Str("-".to_string())