diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-02-10 16:34:13 -0800 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-02-10 16:34:13 -0800 |
| commit | 9e390b299565c7c9054e3dd9189eb1ab76f9f4dd (patch) | |
| tree | 783c5a1777b88350bc98a50ea68680deee9f84da /library/std/src/path.rs | |
| parent | 7edd034a1f6ab10f73779521a231537d64398c2a (diff) | |
| download | rust-9e390b299565c7c9054e3dd9189eb1ab76f9f4dd.tar.gz rust-9e390b299565c7c9054e3dd9189eb1ab76f9f4dd.zip | |
Fix &&str and trailing commas in io::const_error!
Diffstat (limited to 'library/std/src/path.rs')
| -rw-r--r-- | library/std/src/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 97e17acadea..f9f3b488f0d 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -3575,7 +3575,7 @@ impl Error for StripPrefixError { pub fn absolute<P: AsRef<Path>>(path: P) -> io::Result<PathBuf> { let path = path.as_ref(); if path.as_os_str().is_empty() { - Err(io::const_error!(io::ErrorKind::InvalidInput, "cannot make an empty path absolute",)) + Err(io::const_error!(io::ErrorKind::InvalidInput, "cannot make an empty path absolute")) } else { sys::path::absolute(path) } |
