Use thiserror for to derive Error

This commit is contained in:
David Peter authored and David Peter committed 2022-02-06 20:19:50 +01:00
1 parent e6dad51f34
commit ce7087b107
5 files changed
+43 -64

No files matched your search

+2 -2
View File
@@ -196,7 +196,7 @@ fn test_shell_parse_command() {
OptionsError::ShellParseError(_)
));
assert_eq!(Shell::parse("").unwrap_err(), OptionsError::EmptyShell);
assert!(matches!(Shell::parse("").unwrap_err(), OptionsError::EmptyShell));
assert_eq!(Shell::parse("''").unwrap_err(), OptionsError::EmptyShell);
assert!(matches!(Shell::parse("''").unwrap_err(), OptionsError::EmptyShell));
}