Skip to content

Commit 8e04977

Browse files
committed
fmt: cargo
1 parent d5c5a91 commit 8e04977

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

float-pigment-css/src/parser/property_value/gradient.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,7 @@ pub(crate) fn gradient_repr<'a, 't: 'a, 'i: 't>(
435435
}),
436436
))
437437
}),
438-
_ => {
439-
Err(parser.new_custom_error(CustomError::Unsupported))
440-
}
438+
_ => Err(parser.new_custom_error(CustomError::Unsupported)),
441439
}
442440
})
443441
}

float-pigment-css/src/parser/property_value/mod.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -860,9 +860,7 @@ pub(crate) fn element_func_repr<'a, 't: 'a, 'i: 't>(
860860
let hash = hash_token_repr(parser)?;
861861
Ok(BackgroundImageItem::Element(hash.into()))
862862
}),
863-
_ => {
864-
Err(parser.new_custom_error(CustomError::Unsupported))
865-
}
863+
_ => Err(parser.new_custom_error(CustomError::Unsupported)),
866864
}
867865
})
868866
}
@@ -936,9 +934,7 @@ pub(crate) fn image_func_repr<'a, 't: 'a, 'i: 't>(
936934
}
937935
Ok(BackgroundImageItem::Image(image_tags, image_src, color))
938936
}),
939-
_ => {
940-
Err(parser.new_custom_error(CustomError::Unsupported))
941-
}
937+
_ => Err(parser.new_custom_error(CustomError::Unsupported)),
942938
}
943939
})
944940
}

0 commit comments

Comments
 (0)