File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ impl Display for EscapedPathDisplay<'_> {
45
45
/// This is different from [`Path::display`].
46
46
///
47
47
/// See <https://gist.github.com/marcospb19/ebce5572be26397cf08bbd0fd3b65ac1> for a comparison.
48
- pub fn path_to_str ( path : & Path ) -> Cow < str > {
48
+ pub fn path_to_str ( path : & Path ) -> Cow < ' _ , str > {
49
49
os_str_to_str ( path. as_ref ( ) )
50
50
}
51
51
52
- pub fn os_str_to_str ( os_str : & OsStr ) -> Cow < str > {
52
+ pub fn os_str_to_str ( os_str : & OsStr ) -> Cow < ' _ , str > {
53
53
let format = || {
54
54
let text = format ! ( "{os_str:?}" ) ;
55
55
Cow :: Owned ( text. trim_matches ( '"' ) . to_string ( ) )
@@ -83,7 +83,7 @@ pub fn pretty_format_list_of_paths(paths: &[impl AsRef<Path>]) -> String {
83
83
}
84
84
85
85
/// Display the directory name, but use "current directory" when necessary.
86
- pub fn nice_directory_display ( path : & Path ) -> Cow < str > {
86
+ pub fn nice_directory_display ( path : & Path ) -> Cow < ' _ , str > {
87
87
if path == Path :: new ( "." ) {
88
88
Cow :: Borrowed ( "current directory" )
89
89
} else {
You can’t perform that action at this time.
0 commit comments