cargo fmt

This commit is contained in:
Chad Brokaw 2022-07-14 15:29:43 -04:00
parent f9bbb25a4b
commit 007ec6cdc0

View file

@ -121,9 +121,7 @@ impl Instance {
///
/// When no surface is given, the instance is suitable for compute-only
/// work.
pub fn new(
flags: InstanceFlags,
) -> Result<Instance, Error> {
pub fn new(flags: InstanceFlags) -> Result<Instance, Error> {
let mut backends = [BackendType::Vulkan, BackendType::Dx12];
if flags.contains(InstanceFlags::DX12) {
backends.swap(0, 1);