mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Use thiserror for to derive Error
This commit is contained in:
1 parent
e6dad51f34
commit
ce7087b107
5 files changed
+43
-64
No files matched your search
+2
-2
@@ -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));
|
||||
}
|
||||
Reference in new issue
Block a user