Rental property item classification

Hello - In my rental property, I replaced the old worn carpet with new flooring. Is this considered a repair or improvement?  Thank you in advance.  -Jim