Right now, creating a Path from a temporary String is a two-liner:
fn create_temporary_string() -> String { ... }
let path_str = create_temporary_string();
let path = Path::new(&path_str);
Would there be interest in adding the following, or is it two much clutter to avoid an extra line of user code?
let path = Path::from_string(create_temporary_string());
If there’s interest, I’ll go ahead and create a PR (I presume this doesn’t need a full RFC).