mirror of https://github.com/fafhrd91/actix-web
fix variable names
This commit is contained in:
parent
968f714d88
commit
37fe1bfd8f
|
@ -557,8 +557,8 @@ struct CustomStatusFn {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CustomStatusFn {
|
impl CustomStatusFn {
|
||||||
fn call(&self, res: &StatusCode) -> String {
|
fn call(&self, sc: &StatusCode) -> String {
|
||||||
(self.inner_fn)(res)
|
(self.inner_fn)(sc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -617,8 +617,8 @@ impl FormatText {
|
||||||
};
|
};
|
||||||
*self = FormatText::Str(s.to_string())
|
*self = FormatText::Str(s.to_string())
|
||||||
}
|
}
|
||||||
FormatText::CustomStatus(_, response_fn) => {
|
FormatText::CustomStatus(_, status_fn) => {
|
||||||
let s = match response_fn {
|
let s = match status_fn {
|
||||||
Some(f) => FormatText::Str(f.call(&res.status())),
|
Some(f) => FormatText::Str(f.call(&res.status())),
|
||||||
None => FormatText::Str("-".to_owned()),
|
None => FormatText::Str("-".to_owned()),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue