Update logger.rs

This commit is contained in:
Rob Ede 2022-09-26 19:17:05 +01:00 committed by GitHub
parent ab8a504561
commit 63f4d1a509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -634,9 +634,9 @@ impl FormatText {
*self = FormatText::Str(s.to_string()) *self = FormatText::Str(s.to_string())
} }
FormatText::CustomResponse(_, status_fn) => { FormatText::CustomResponse(_, res_fn) => {
let text = match status_fn { let text = match res_fn {
Some(status_fn) => FormatText::Str(status_fn.call(res)), Some(res_fn) => FormatText::Str(res_fn.call(res)),
None => FormatText::Str("-".to_owned()), None => FormatText::Str("-".to_owned()),
}; };