Add safety memoir

pull/585/head
Isaac Mills 2 years ago
parent 83cbcfbf5c
commit 501a8bf02b
No known key found for this signature in database
GPG Key ID: B67D7410F33A0F61

@ -263,9 +263,6 @@ impl<'a> Layout<'a> {
pub fn split(&self, area: Rect) -> &'static [Rect] {
let vec = LAYOUT_CACHE.with(|c| {
// SAFETY:
// "c" is stored in a static variable
// and can therefore have a static lifetime
let mut b = c.borrow_mut();
let vec = b

Loading…
Cancel
Save