From b74d07bc786e534ea34640b9284666f7cf7de295 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 12 Oct 2016 20:50:56 +0530 Subject: [PATCH] Use unsafe block on access of column count constant --- components/style/properties/gecko.mako.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 42390c3acf6..d14e12e25e1 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -1988,7 +1988,9 @@ clip-path use gecko_bindings::structs::{NS_STYLE_COLUMN_COUNT_AUTO, nsStyleColumn_kMaxColumnCount}; self.gecko.mColumnCount = match v.0 { - Some(number) => cmp::min(number, nsStyleColumn_kMaxColumnCount), + Some(number) => unsafe { + cmp::min(number, nsStyleColumn_kMaxColumnCount) + }, None => NS_STYLE_COLUMN_COUNT_AUTO }; }