Agreed, a shim is not the ideal or most elegant solution.

They are still a very useful way to get a rifle to deliver its group where you want it, particularly if you do not have a better solution to hand.

As Herbert McBride found, rusted bits of razor blade can even stop a Warner and Swasey scope wobbling around on a .303” Ross.