mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
nak: replace .find(x).is_some() with .contains(x)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
c52fa1ac14
commit
41ce1939f9
1 changed files with 2 additions and 2 deletions
|
|
@ -171,9 +171,9 @@ fn sm_list() -> &'static [u8] {
|
||||||
assert!(out.status.success());
|
assert!(out.status.success());
|
||||||
let stdout = std::str::from_utf8(&out.stdout).unwrap();
|
let stdout = std::str::from_utf8(&out.stdout).unwrap();
|
||||||
|
|
||||||
if stdout.find("cuda_12").is_some() {
|
if stdout.contains("cuda_12") {
|
||||||
&[70, 75, 80, 86, 89, 90, 100, 120]
|
&[70, 75, 80, 86, 89, 90, 100, 120]
|
||||||
} else if stdout.find("cuda_13").is_some() {
|
} else if stdout.contains("cuda_13") {
|
||||||
&[75, 80, 86, 89, 90, 100, 120]
|
&[75, 80, 86, 89, 90, 100, 120]
|
||||||
} else {
|
} else {
|
||||||
panic!("Unknown nvdisasm version. stdout: {stdout}");
|
panic!("Unknown nvdisasm version. stdout: {stdout}");
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue