Skip to content

Commit

Permalink
fmt: cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Jan 24, 2025
1 parent d5c5a91 commit 8e04977
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions float-pigment-css/src/parser/property_value/gradient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
})
}
Expand Down
8 changes: 2 additions & 6 deletions float-pigment-css/src/parser/property_value/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
})
}
Expand Down Expand Up @@ -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)),
}
})
}
Expand Down

0 comments on commit 8e04977

Please sign in to comment.