Skip to content
Myr

Cleanup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 6e96154 · Browse files · 1 file+3 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:src/filesystem.rs+3 added-4 removed
93 unmodified lines
94}9596#[cfg(test)]97mod tests {98 use super::strip_current_dir;99 use std::path::{Path, PathBuf};100101 #[test]102 fn strip_current_dir_basic() {100 use std::path::{Path, PathBuf};101102 use super::strip_current_dir;103103 assert_eq!(strip_current_dir(&PathBuf::from("./foo")), Path::new("foo"));104 assert_eq!(strip_current_dir(&PathBuf::from("foo")), Path::new("foo"));105 assert_eq!(106 strip_current_dir(&PathBuf::from("./foo/bar/baz")),
8 unmodified lines