reformat
This commit is contained in:
parent
36c8ebcb54
commit
45895ca7bc
12 changed files with 36 additions and 151 deletions
|
|
@ -62,9 +62,7 @@ impl MessageLog {
|
|||
self
|
||||
}
|
||||
pub fn xff(&mut self, xff: &Option<&hyper::header::HeaderValue>) -> &mut Self {
|
||||
self.xff = xff
|
||||
.map_or_else(|| "", |v| v.to_str().unwrap_or(""))
|
||||
.to_string();
|
||||
self.xff = xff.map_or_else(|| "", |v| v.to_str().unwrap_or("")).to_string();
|
||||
self
|
||||
}
|
||||
pub fn upstream(&mut self, upstream: &str) -> &mut Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue