Skip to content
This repository was archived by the owner on May 28, 2024. It is now read-only.

Use bitflags 0.5 #77

Merged
merged 1 commit into from
Apr 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ unstable = ["string_cache/unstable"]
heap_size = ["string_cache/heap_size", "heapsize", "heapsize_plugin"]

[dependencies]
bitflags = "0.3"
bitflags = "0.5"
matches = "0.1"
cssparser = "0.5"
smallvec = "0.1"
Expand Down
4 changes: 2 additions & 2 deletions src/matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ impl<T> DeclarationBlock<T> {

bitflags! {
#[doc = "Flags set on elements during the matching process."]
flags ElementFlags: u8 {
pub flags ElementFlags: u8 {
#[doc = "When a child is added or removed from this element, all the children must be"]
#[doc = "restyled, because they may match :nth-last-child, :last-of-type,"]
#[doc = ":nth-last-of-type, or :only-of-type."]
Expand Down Expand Up @@ -513,7 +513,7 @@ fn matches_compound_selector_internal<E>(selector: &CompoundSelector<E::Impl>,
}

bitflags! {
flags CommonStyleAffectingAttributes: u8 {
pub flags CommonStyleAffectingAttributes: u8 {
const HIDDEN_ATTRIBUTE = 0x01,
const NO_WRAP_ATTRIBUTE = 0x02,
const ALIGN_LEFT_ATTRIBUTE = 0x04,
Expand Down