Function inject_lib::strip_rust_path
source · [−]Expand description
This takes a string, and cuts off, everything before the last /
.
The intention is, that this will truncate any rust(/Linux?) path (since rust uses /
), to it’s filename, without having to actually look the file up.