diff --git a/meilisearch-types/src/keys.rs b/meilisearch-types/src/keys.rs index f645c87e6..ec3c5246c 100644 --- a/meilisearch-types/src/keys.rs +++ b/meilisearch-types/src/keys.rs @@ -230,7 +230,7 @@ bitflags! { let mut exp = 0; while exp <= 24 { - all |= 1 << exp; + all = (all << 1) + 1; exp += 1; }