From 33eb857a81cdbd9e97a3323c96fb3594f5cea342 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Fri, 3 Apr 2020 19:25:50 +0200 Subject: [PATCH] Cleanup --- src/filesystem.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index 8b0d593..de926ac 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -95,12 +95,11 @@ pub fn strip_current_dir(pathbuf: &PathBuf) -> &Path { #[cfg(test)] mod tests { + use super::strip_current_dir; + use std::path::{Path, PathBuf}; + #[test] fn strip_current_dir_basic() { - use std::path::{Path, PathBuf}; - - use super::strip_current_dir; - assert_eq!(strip_current_dir(&PathBuf::from("./foo")), Path::new("foo")); assert_eq!(strip_current_dir(&PathBuf::from("foo")), Path::new("foo")); assert_eq!(