about summary refs log tree commit diff
path: root/library/std/src/path.rs
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2025-02-10 16:34:13 -0800
committerThalia Archibald <thalia@archibald.dev>2025-02-10 16:34:13 -0800
commit9e390b299565c7c9054e3dd9189eb1ab76f9f4dd (patch)
tree783c5a1777b88350bc98a50ea68680deee9f84da /library/std/src/path.rs
parent7edd034a1f6ab10f73779521a231537d64398c2a (diff)
downloadrust-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.rs2
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)
     }