From 7b5ea0e7f5bece3ddde9a5891c853322cfc6c0f8 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Tue, 20 May 2025 16:03:04 +0200 Subject: use Self alias in self types rather than manually substituting it --- library/std/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/std/src/path.rs') diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 1a4a7aa7448..7959c633858 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -3163,7 +3163,7 @@ impl Path { /// allocating. #[stable(feature = "into_boxed_path", since = "1.20.0")] #[must_use = "`self` will be dropped if the result is not used"] - pub fn into_path_buf(self: Box) -> PathBuf { + pub fn into_path_buf(self: Box) -> PathBuf { let rw = Box::into_raw(self) as *mut OsStr; let inner = unsafe { Box::from_raw(rw) }; PathBuf { inner: OsString::from(inner) } -- cgit 1.4.1-3-g733a5