Skip to content

Commit

Permalink
metal: Fix clippy::useless-vec
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Apr 30, 2024
1 parent b96f79e commit c6b241b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ impl Allocator {
}

pub fn new(desc: &AllocatorCreateDesc) -> Result<Self> {
let heap_types = vec![
let heap_types = [
(MemoryLocation::GpuOnly, {
let heap_desc = metal::HeapDescriptor::new();
heap_desc.set_cpu_cache_mode(metal::MTLCPUCacheMode::DefaultCache);
Expand Down

0 comments on commit c6b241b

Please sign in to comment.