mirror of
https://github.com/veeso/termscp.git
synced 2026-04-09 19:51:53 -07:00
fmt
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user