Fix cargo deprecation warning