I wouldn't recommend WD40 unless you wanna squirt it in there all the time, because as soon as it disappears, rusting comes back stronger. WD40 is an extremely strong solvent.
Actually I wouldn't worry about it at all as long as you keep riding your bike, because regular vibrations usually shake the rust off on the inside because it isn't exposed external elements as much.