Accelerating Cosmology in Rastall's Theory