File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Simple example for interacting via ftp:
37
37
use rexpect :: spawn;
38
38
use rexpect :: error :: * ;
39
39
40
- fn do_ftp () -> Result <()> {
40
+ fn do_ftp () -> Result <(), Error > {
41
41
let mut p = spawn (" ftp speedtest.tele2.net" , Some (30_000 ))? ;
42
42
p . exp_regex (" Name \ \ (.*\ \ ):" )? ;
43
43
p . send_line (" anonymous" )? ;
@@ -64,7 +64,7 @@ fn main() {
64
64
use rexpect :: spawn_bash;
65
65
use rexpect :: error :: * ;
66
66
67
- fn do_bash () -> Result <()> {
67
+ fn do_bash () -> Result <(), Error > {
68
68
let mut p = spawn_bash (Some (2000 ))? ;
69
69
70
70
// case 1: wait until program is done
@@ -114,7 +114,7 @@ goes into nirvana. There are two functions to ensure that:
114
114
use rexpect :: spawn_bash;
115
115
use rexpect :: error :: * ;
116
116
117
- fn do_bash_jobcontrol () -> Result <()> {
117
+ fn do_bash_jobcontrol () -> Result <(), Error > {
118
118
let mut p = spawn_bash (Some (1000 ))? ;
119
119
p . execute (" ping 8.8.8.8" , " bytes of data" )? ;
120
120
p . send_control ('z' )? ;
You can’t perform that action at this time.
0 commit comments