@@ -597,8 +597,8 @@ impl CSSStyleRule {
597597
598598 #[ napi( getter) ]
599599 pub fn style ( & mut self , env : Env , reference : Reference < CSSStyleRule > ) -> Result < Reference < CSSStyleDeclaration > > {
600- if let Some ( rules ) = & self . style {
601- return rules . clone ( env) ;
600+ if let Some ( style ) = & self . style {
601+ return style . clone ( env) ;
602602 }
603603
604604 let parent_rule =
@@ -777,11 +777,16 @@ impl Declarations for FontFaceRule<'static> {
777777 )
778778 }
779779
780- fn get_property_priority ( & mut self , property : & str ) -> Result < & str > {
780+ fn get_property_priority ( & mut self , _property : & str ) -> Result < & str > {
781781 Ok ( "" )
782782 }
783783
784- fn set_property ( & mut self , property : & ' static str , value : & ' static str , priority : Option < String > ) -> Result < ( ) > {
784+ fn set_property (
785+ & mut self ,
786+ property : & ' static str ,
787+ value : & ' static str ,
788+ _priority : Option < String > ,
789+ ) -> Result < ( ) > {
785790 let value = FontFaceProperty :: parse_string ( property, value) . unwrap ( ) ;
786791
787792 for property in self . properties . iter_mut ( ) {
@@ -1416,8 +1421,8 @@ impl CSSKeyframeRule {
14161421 env : Env ,
14171422 reference : Reference < CSSKeyframeRule > ,
14181423 ) -> Result < Reference < CSSStyleDeclaration > > {
1419- if let Some ( rules ) = & self . style {
1420- return rules . clone ( env) ;
1424+ if let Some ( style ) = & self . style {
1425+ return style . clone ( env) ;
14211426 }
14221427
14231428 let parent_rule = unsafe {
@@ -1655,8 +1660,8 @@ impl CSSPageRule {
16551660
16561661 #[ napi( getter) ]
16571662 pub fn style ( & mut self , env : Env , reference : Reference < CSSPageRule > ) -> Result < Reference < CSSStyleDeclaration > > {
1658- if let Some ( rules ) = & self . style {
1659- return rules . clone ( env) ;
1663+ if let Some ( style ) = & self . style {
1664+ return style . clone ( env) ;
16601665 }
16611666
16621667 let parent_rule =
@@ -1754,8 +1759,8 @@ impl CSSFontFaceRule {
17541759 env : Env ,
17551760 reference : Reference < CSSFontFaceRule > ,
17561761 ) -> Result < Reference < CSSStyleDeclaration > > {
1757- if let Some ( rules ) = & self . style {
1758- return rules . clone ( env) ;
1762+ if let Some ( style ) = & self . style {
1763+ return style . clone ( env) ;
17591764 }
17601765
17611766 let parent_rule = unsafe {
0 commit comments