mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 16:53:48 +00:00
Correct error message for Handle
index overflow.
This function is used from both `Arena` and `UniqueArena`. When its code moved from `Arena` to `Handle`, the error message was adapted incorrectly.
This commit is contained in:
parent
e8723219b7
commit
7b8d257043
@ -101,7 +101,7 @@ impl<T> Handle<T> {
|
||||
let handle_index = u32::try_from(index + 1)
|
||||
.ok()
|
||||
.and_then(Index::new)
|
||||
.expect("Failed to insert into UniqueArena. Handle overflows");
|
||||
.expect("Failed to insert into arena. Handle overflows");
|
||||
Handle::new(handle_index)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user