SIGN IN SIGN UP
tauri-apps / tauri UNCLAIMED

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

0 0 123 Rust

feat: Allow getting inner PathBuf from SafePathBuf (#14908)

* Allow getting inner PathBuf from SafePathBuf

SafePathBuf implements AsRef<Path> which is ergonomic and useful.
However, some APIs take owned PathBufs. This leads to clunky code where
the caller has to get a &Path from the SafePathBuf then take ownership
of that path. Ideally, if a user has a SafePathBuf and needs a PathBuf,
they won't need to allocate again just to get the inner PathBuf back.

* Apply suggestion from @Legend-Master
J
Joshua Megnauth committed
4017a7ed7313cebf912ef3af1e3b280855b6f100
Parent: 093e2b4
Committed by GitHub <noreply@github.com> on 3/24/2026, 8:35:05 AM