对以下代码片段进行改进，使其更简练和更具有可读性。
```
switch (type) 
{
    case 0:
        message.details = "Failed";
        break;
    case 1:
        message.details = "Completed";
        break;
    case 2:
        message.details = "Pending";
        break;
    default:
        message.details = "Unknown";
        break;
```
user
```c
switch (type) {
    case 0: message.details = "Failed"; break;
    case 1: message.details = "Completed"; break;
    case 2: message.details = "Pending"; break;
    default: message.details = "Unknown"; break;
}
```
assistant