Rubbing against things is a symptom of Ich, I would suggest watching him closely and checking for little white spots on your fish. If you see any I would treat him for Ich. I personally don't do any treatments unless I know what the illness is.
Just keep a good eye on him for anything else that pops up.
Just keep a good eye on him for anything else that pops up.