fix ServiceFlags::remove

This commit is contained in:
Antoni Spaanderman 2024-06-09 00:09:00 +02:00
parent f260b097f4
commit 0949be931a
No known key found for this signature in database
GPG Key ID: AE0B68E552E5DF8C
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ impl ServiceFlags {
///
/// Returns itself.
pub fn remove(&mut self, other: ServiceFlags) -> ServiceFlags {
self.0 ^= other.0;
self.0 &= !other.0;
*self
}