diff options
author | Kevin Cui <krazycavin@gmail.com> | 2020-09-15 19:14:54 +0000 |
---|---|---|
committer | Kevin Cui <krazycavin@gmail.com> | 2020-09-15 19:14:54 +0000 |
commit | e65c62fc568a8c052bd875e9a5ec168265f391ba (patch) | |
tree | 5895df5d81fe50bc4388554ca86fefcf40ca3f1b /src | |
parent | Replace HumanTime::to_text_en by HumanTime (diff) | |
download | miniserve-e65c62fc568a8c052bd875e9a5ec168265f391ba.tar.gz miniserve-e65c62fc568a8c052bd875e9a5ec168265f391ba.zip |
Cleanup format
Diffstat (limited to '')
-rw-r--r-- | src/renderer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 1192565..17d2baf 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -913,7 +913,7 @@ fn humanize_systemtime(src_time: Option<SystemTime>) -> Option<String> { src_time .and_then(|std_time| SystemTime::now().duration_since(std_time).ok()) .and_then(|from_now| Duration::from_std(from_now).ok()) - .map(|duration| { format!("{}", HumanTime::from(-duration))}) + .map(|duration| format!("{}", HumanTime::from(-duration))) } /// Renders an error on the webpage |