1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #2323 from miDeb/maint/spellcheck-all

maint: actually run spellcheck on all files
This commit is contained in:
Sylvestre Ledru 2021-05-31 23:36:56 +02:00 committed by GitHub
commit a017c1b589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 23 deletions

View file

@ -1,3 +1,5 @@
// spell-checker:ignore (ToDO) Sdivide
use crate::common::util::*;
use chrono::offset::Local;
use chrono::DateTime;
@ -10,8 +12,8 @@ fn file_last_modified_time(ucmd: &UCommand, path: &str) -> String {
.map(|i| {
i.modified()
.map(|x| {
let datetime: DateTime<Local> = x.into();
datetime.format("%b %d %H:%M %Y").to_string()
let date_time: DateTime<Local> = x.into();
date_time.format("%b %d %H:%M %Y").to_string()
})
.unwrap_or_default()
})