I never had a problem using WD40 as a rust preventative when I had firearms so would not hesitate to use it on straights. Metal is metal so it should work equally well on both.

Bob