⬆️ Upgrade veccell

main
Shad Amethyst 2 years ago
parent 6fa4f5ce92
commit a816da6062
Signed by: amethyst
GPG Key ID: D970C8DD1D6DEE36

@ -10,7 +10,7 @@ edition = "2021"
palette = "0.6" palette = "0.6"
enum_dispatch = "0.3" enum_dispatch = "0.3"
contracts = { version = "0.6.3", features = ["override_debug"] } contracts = { version = "0.6.3", features = ["override_debug"] }
veccell = "0.1" veccell = "0.2"
[dev-dependencies] [dev-dependencies]
colored = "2.0" colored = "2.0"

@ -1,8 +1,6 @@
use super::*; use super::*;
use veccell::{VecRef, VecRefMut}; use veccell::{VecRef, VecRefMut};
// TODO: write VecCell, to make miri happy
/** Provides an interface between a [`Tile`] and its parent [`Pane`] during [`Tile::update`]. /** Provides an interface between a [`Tile`] and its parent [`Pane`] during [`Tile::update`].
All actions performed through `UpdateContext` will be executed *after* all the tiles have updated. All actions performed through `UpdateContext` will be executed *after* all the tiles have updated.

@ -149,7 +149,7 @@ impl Pane {
return None; return None;
} }
self.tiles.get(position.1 * self.width.get() + position.0) self.tiles.borrow(position.1 * self.width.get() + position.0)
} }
/// Returns a mutable reference to the [`Tile`] at `position`. /// Returns a mutable reference to the [`Tile`] at `position`.

Loading…
Cancel
Save