Many modern handguns have safeties integrated into their triggers, which disengage when the trigger is pulled. It’s argued that this is safer than a traditional switch safety by virtue of it being automatic, so there is no danger of it ever being left “off” when the gun is holstered.