Skip to content

Commit 06e85fd

Browse files
author
Felix Raimundo
committed
inlines contains in bitflags!
Closes #17210
1 parent 21d1f4d commit 06e85fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/bitflags.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ macro_rules! bitflags {
170170
}
171171

172172
/// Returns `true` all of the flags in `other` are contained within `self`.
173+
#[inline]
173174
pub fn contains(&self, other: $BitFlags) -> bool {
174175
(self & other) == other
175176
}

0 commit comments

Comments
 (0)