Skip to content

Commit 574254b

Browse files
committed
More 1.88.0-beta.3 clippy fixes
1 parent 10a720b commit 574254b

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.vscode/rust-skia-macos.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"settings": {
66
"rust-analyzer": {
77
"cargo": {
8-
"features": ["gl", "vulkan", "metal", "textlayout", "svg", "ureq", "webp"]
8+
"features": ["gl", "vulkan", "vulkan-window", "metal", "textlayout", "svg", "ureq", "webp"]
99
}
1010
}
1111
}

skia-safe/examples/vulkan-window/context.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,7 @@ impl VulkanRenderContext {
5656
},
5757
)
5858
.unwrap_or_else(|_| {
59-
panic!(
60-
"Could not create instance supporting: {:?}",
61-
required_extensions
62-
)
59+
panic!("Could not create instance supporting: {required_extensions:?}")
6360
});
6461

6562
// Choose device extensions that we're going to use. In order to present images to a

skia-safe/examples/vulkan-window/renderer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ fn surface_for_framebuffer(
395395
skia_safe::gpu::vk::Format::B8G8R8A8_UNORM,
396396
ColorType::BGRA8888,
397397
),
398-
_ => panic!("unsupported color format {:?}", format),
398+
_ => panic!("Unsupported color format {format:?}"),
399399
};
400400

401401
let alloc = vk::Alloc::default();

0 commit comments

Comments
 (0)