The rule states to "hold your line" it does not say stay in the race line. The intent is that the rider being passed doesn't start swerving or riding like a squid.