Fix rust mode mapping