requested changes

This commit is contained in:
mpostma 2020-07-16 16:12:23 +02:00
parent 4b5437a882
commit d114250ebb
4 changed files with 23 additions and 9 deletions

View file

@ -276,9 +276,7 @@ impl Schema {
pub fn is_displayed(&self, id: FieldId) -> bool {
match self.displayed {
OptionAll::Some(ref v) => {
v.get(&id).is_some()
}
OptionAll::Some(ref v) => v.contains(&id),
OptionAll::All => true,
OptionAll::None => false,
}