mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 08:14:12 +00:00
Use .rsplit_once("/src/")
instead of .split_once("/src/")
.
This commit is contained in:
parent
f559a6b16e
commit
7e402553bc
@ -332,7 +332,7 @@ impl DiagnosticReporter<'_> {
|
||||
let prefix = match level {
|
||||
DiagLevel::Bug(location) => {
|
||||
let location = location.to_string();
|
||||
let location = match location.split_once("/src/") {
|
||||
let location = match location.rsplit_once("/src/") {
|
||||
Some((_path_prefix, intra_src)) => intra_src,
|
||||
None => &location,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user