Update arrayvec.

This commit is contained in:
Josh Matthews 2022-04-01 01:06:02 -04:00
parent 72fd95f613
commit a7c87af9ca
8 changed files with 21 additions and 20 deletions

View file

@ -32,7 +32,7 @@ serde_json = "1.0"
[dependencies]
accountable-refcell = { version = "0.2.0", optional = true }
app_units = "0.7"
arrayvec = "0.5.1"
arrayvec = "0.7"
backtrace = "0.3"
base64 = "0.10.1"
bitflags = "1.0"

View file

@ -135,7 +135,7 @@ impl GPUCanvasContextMethods for GPUCanvasContext {
}
*self.swap_chain.borrow_mut() = None;
let mut buffer_ids = ArrayVec::<[id::BufferId; PRESENTATION_BUFFER_COUNT]>::new();
let mut buffer_ids = ArrayVec::<id::BufferId, PRESENTATION_BUFFER_COUNT>::new();
for _ in 0..PRESENTATION_BUFFER_COUNT {
buffer_ids.push(
self.global()