style: Miscellaneous Servo build fixes.

This commit is contained in:
Emilio Cobos Álvarez 2020-02-10 16:50:40 +01:00
parent 18cda1567a
commit e227715aee
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A
12 changed files with 59 additions and 10 deletions

View file

@ -168,8 +168,9 @@ pub enum GenericContent<ImageUrl> {
pub use self::GenericContent as Content;
impl<ImageUrl> Content<ImageUrl> {
/// Whether `self` represents list of items.
#[inline]
pub(crate) fn is_items(&self) -> bool {
pub fn is_items(&self) -> bool {
matches!(*self, Self::Items(..))
}