forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
+10
-3
@@ -48,7 +48,8 @@ impl OpenCADStudio {
|
||||
};
|
||||
match &self.gpu_status {
|
||||
GpuStatus::Software(adapter) => {
|
||||
self.command_line.push_warning(&software_rasterizer_warning(adapter));
|
||||
self.command_line
|
||||
.push_warning(&software_rasterizer_warning(adapter));
|
||||
}
|
||||
GpuStatus::NoRenderer => {
|
||||
crate::scene::pipeline::report_gpu_line(
|
||||
@@ -127,9 +128,15 @@ mod tests {
|
||||
// The name carries parentheses and commas of its own; the localized
|
||||
// template must still place it whole. The loader follows the system
|
||||
// locale here, so the assertions stay language-neutral.
|
||||
assert!(warning.contains("(llvmpipe (LLVM 20.1.8, 256 bits))"), "{warning}");
|
||||
assert!(
|
||||
warning.contains("(llvmpipe (LLVM 20.1.8, 256 bits))"),
|
||||
"{warning}"
|
||||
);
|
||||
assert!(warning.contains("GPU"), "{warning}");
|
||||
assert!(!warning.contains("{adapter}") && !warning.contains("__ocs_"), "{warning}");
|
||||
assert!(
|
||||
!warning.contains("{adapter}") && !warning.contains("__ocs_"),
|
||||
"{warning}"
|
||||
);
|
||||
// Every platform has a hint, and it is a sentence, not a missing key.
|
||||
let hint = gpu_platform_hint();
|
||||
assert!(hint.len() > 20 && !hint.contains("hint-"), "{hint}");
|
||||
|
||||
Reference in new issue
Block a user