From 8e04977b0212132f2c3ace82441c65e89ebb18e0 Mon Sep 17 00:00:00 2001 From: LastLeaf Date: Fri, 24 Jan 2025 17:47:32 +0800 Subject: [PATCH] fmt: cargo --- float-pigment-css/src/parser/property_value/gradient.rs | 4 +--- float-pigment-css/src/parser/property_value/mod.rs | 8 ++------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/float-pigment-css/src/parser/property_value/gradient.rs b/float-pigment-css/src/parser/property_value/gradient.rs index dbc803e..185326c 100644 --- a/float-pigment-css/src/parser/property_value/gradient.rs +++ b/float-pigment-css/src/parser/property_value/gradient.rs @@ -435,9 +435,7 @@ pub(crate) fn gradient_repr<'a, 't: 'a, 'i: 't>( }), )) }), - _ => { - Err(parser.new_custom_error(CustomError::Unsupported)) - } + _ => Err(parser.new_custom_error(CustomError::Unsupported)), } }) } diff --git a/float-pigment-css/src/parser/property_value/mod.rs b/float-pigment-css/src/parser/property_value/mod.rs index 104cf3c..4d0cceb 100644 --- a/float-pigment-css/src/parser/property_value/mod.rs +++ b/float-pigment-css/src/parser/property_value/mod.rs @@ -860,9 +860,7 @@ pub(crate) fn element_func_repr<'a, 't: 'a, 'i: 't>( let hash = hash_token_repr(parser)?; Ok(BackgroundImageItem::Element(hash.into())) }), - _ => { - Err(parser.new_custom_error(CustomError::Unsupported)) - } + _ => Err(parser.new_custom_error(CustomError::Unsupported)), } }) } @@ -936,9 +934,7 @@ pub(crate) fn image_func_repr<'a, 't: 'a, 'i: 't>( } Ok(BackgroundImageItem::Image(image_tags, image_src, color)) }), - _ => { - Err(parser.new_custom_error(CustomError::Unsupported)) - } + _ => Err(parser.new_custom_error(CustomError::Unsupported)), } }) }