Use char instead of string for single char match

This commit is contained in:
Edward Shen 2020-11-03 20:17:34 -05:00
parent 60b7dc4219
commit a8f2e0cfd7
Signed by: edward
GPG key ID: F350507060ED6C90

View file

@ -217,7 +217,7 @@ enum HopAction {
/// file. /// file.
fn resolve_path(path: PathBuf, args: &str) -> Result<HopAction, BunBunError> { fn resolve_path(path: PathBuf, args: &str) -> Result<HopAction, BunBunError> {
let output = Command::new(path.canonicalize()?) let output = Command::new(path.canonicalize()?)
.args(args.split(" ")) .args(args.split(' '))
.output()?; .output()?;
if output.status.success() { if output.status.success() {