mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 14:56:27 +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 {
|
let prefix = match level {
|
||||||
DiagLevel::Bug(location) => {
|
DiagLevel::Bug(location) => {
|
||||||
let location = location.to_string();
|
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,
|
Some((_path_prefix, intra_src)) => intra_src,
|
||||||
None => &location,
|
None => &location,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user