This commit is contained in:
veeso
2023-05-09 15:40:21 +02:00
parent 9009002b6e
commit c5eeae74b7
83 changed files with 398 additions and 358 deletions

View File

@@ -2,11 +2,11 @@
//!
//! `fmt` is the module which provides utilities for formatting
use remotefs::fs::UnixPexClass;
use chrono::prelude::*;
use std::path::{Path, PathBuf};
use std::time::{Duration, SystemTime};
use chrono::prelude::*;
use remotefs::fs::UnixPexClass;
use tuirealm::tui::style::Color;
use unicode_width::UnicodeWidthStr;
@@ -271,10 +271,10 @@ pub fn fmt_bytes(v: u64) -> String {
#[cfg(test)]
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use super::*;
#[test]
fn test_utils_fmt_pex() {
assert_eq!(fmt_pex(UnixPexClass::from(7)), String::from("rwx"));