Convert PluginFailedToDecode to named fields (#11126)

# Description

Part of #10700

# User-Facing Changes

None

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting

N/A
This commit is contained in:
Eric Hodel
2023-11-22 03:56:04 -08:00
committed by GitHub
parent d5677625a7
commit 776df7cd93
4 changed files with 15 additions and 9 deletions

View File

@@ -93,7 +93,7 @@ impl From<ShellError> for LabeledError {
msg,
span: None,
},
ShellError::PluginFailedToDecode(msg) => LabeledError {
ShellError::PluginFailedToDecode { msg } => LabeledError {
label: "Plugin failed to decode".into(),
msg,
span: None,