Checks for joining of constant path components.
Such paths can be constructed from string literals using /
, since /
works as a path
separator on both Unix and Windows (see std::path::Path
).
PathBuf::from("..").join("target")
Use instead:
PathBuf::from("../target")