This cop seems to have a problem "abiding by the same rules as everyone else," since she shouldn't have passed so close. Then again, neither should you have passed on the right, nor should you be hugging the curb. It may piss off some ignorant drivers, but claim your lane and this sort of thing won't happen. In less fortunate circumstances, riding and passing tight to the curb can get you squished.