mirror of
https://github.com/sagiegurari/duckscript
synced 2024-10-04 15:09:08 +00:00
clippy fix
This commit is contained in:
parent
0d80569bf6
commit
9371e46b88
|
@ -60,10 +60,7 @@ pub(crate) fn spawn(
|
|||
Ok(mut child) => match input {
|
||||
ExecInput::Text(value) => match child.stdin.as_mut() {
|
||||
Some(stdin) => match stdin.write_all(value.as_bytes()) {
|
||||
Ok(_) => {
|
||||
drop(stdin);
|
||||
Ok(child)
|
||||
}
|
||||
Ok(_) => Ok(child),
|
||||
Err(error) => Err(error.to_string()),
|
||||
},
|
||||
None => Err("Unable to write input to process".to_string()),
|
||||
|
|
Loading…
Reference in a new issue