From d7a3bec6d779aca97c20286383f6ce2ae8647da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 13 Sep 2017 19:52:49 +0200 Subject: [PATCH] style: Add a comment about why the raw pointer is ok. --- components/style/stylesheet_set.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs index 2611208d99e..328237ccbae 100644 --- a/components/style/stylesheet_set.rs +++ b/components/style/stylesheet_set.rs @@ -115,6 +115,8 @@ where { guard: &'a SharedRwLockReadGuard<'b>, origins_dirty: OriginSetIterator, + // NB: Bound to the StylesheetSet lifetime when constructed, see + // StylesheetSet::flush. collections: *mut PerOrigin>, current: Option>>, origin_data_validity: PerOrigin,