Switches are really supposed to be rated for the load so a 15a switch on a 20a circuit is not a problem if it is a 15a (or less load). More of an issue, generally, is whether a switch is motor rated when it is a motor load. You have to watch out for this when you are using a snap switch for things like pool pumps and big "whole house" fans.