mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Fix clippy warnings
This commit is contained in:
1 parent
1b7d139f21
commit
f2bfedd3a6
3 files changed
+6
-4
No files matched your search
+1
-1
@@ -37,7 +37,7 @@ impl fmt::Display for Shell {
|
||||
impl Shell {
|
||||
/// Parse given string as shell command line
|
||||
pub fn parse<'a>(s: &str) -> Result<Self, OptionsError<'a>> {
|
||||
let v = shell_words::split(s.as_ref()).map_err(OptionsError::ShellParseError)?;
|
||||
let v = shell_words::split(s).map_err(OptionsError::ShellParseError)?;
|
||||
if v.is_empty() || v[0].is_empty() {
|
||||
return Err(OptionsError::EmptyShell);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user