(items: (L, C, M))
| 128 | M: Into<String>, |
| 129 | { |
| 130 | fn from(items: (L, C, M)) -> Self { |
| 131 | let (location, context, message) = items; |
| 132 | Self { |
| 133 | location: location.into(), |
| 134 | context: Some(context.into()), |
| 135 | message: message.into(), |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /// Convenience converter for making error-reporting less verbose. |