mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
Fix build under rust stable
This commit is contained in:
@@ -634,9 +634,12 @@ impl GpuController {
|
||||
.replace("}", "");
|
||||
|
||||
for feature in features_string.split(',') {
|
||||
let (name, supported) = feature.split_once(':').unwrap();
|
||||
let name = name.trim();
|
||||
let supported: bool = supported.trim().parse().unwrap();
|
||||
// let (name, supported) = feature.split_once(':').unwrap(); Use this once it's in stable
|
||||
let mut split = feature.split(':');
|
||||
let name = split.next().unwrap().trim();
|
||||
let supported = split.next().unwrap().trim();
|
||||
|
||||
let supported: bool = supported.parse().unwrap();
|
||||
|
||||
features.insert(name.to_string(), supported);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user