Skip to content

Commit 38255a3

Browse files
committed
fix: clippy warnings
1 parent a976272 commit 38255a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

float-pigment-forest/src/node.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl Node {
280280
*self.baseline_cache.get() = Some(Box::new(LruCache::new(CACHE_SIZE)));
281281
}
282282
}
283-
283+
#[allow(clippy::mut_from_ref)]
284284
#[inline(always)]
285285
pub(crate) unsafe fn measure_cache(&self) -> Option<&mut MeasureCache> {
286286
if self.node_type() != NodeType::Text {
@@ -295,6 +295,7 @@ impl Node {
295295
}
296296
}
297297

298+
#[allow(clippy::mut_from_ref)]
298299
#[inline(always)]
299300
pub(crate) unsafe fn baseline_cache(&self) -> Option<&mut BaselineCache> {
300301
if self.node_type() != NodeType::Text {

0 commit comments

Comments
 (0)