From c1a3ef81ac746ea254aece1b10dbb0713a0fd5e7 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkk669@users.noreply.github.com> Date: Thu, 20 Dec 2018 11:51:44 +0900 Subject: [PATCH] cargo fmt src/display.rs --- src/display.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/display.rs b/src/display.rs index 9cac45d..2899092 100644 --- a/src/display.rs +++ b/src/display.rs @@ -108,10 +108,8 @@ impl Display { } } - #[cfg(test)] mod tests { - use std::path::Path; use super::*; use color; use color::Colors; @@ -119,6 +117,7 @@ mod tests { use icon; use icon::Icons; use meta::{FileType, Name}; + use std::path::Path; #[test] fn test_display_get_visible_width() { @@ -134,7 +133,10 @@ mod tests { ] { let path = Path::new(s); let name = Name::new(&path, FileType::File); - let output = name.render(&Colors::new(color::Theme::Default), &Icons::new(icon::Theme::Default)); + let output = name.render( + &Colors::new(color::Theme::Default), + &Icons::new(icon::Theme::Default), + ); assert_eq!(display.get_visible_width(&output), *l); } }