Skip to content

Commit 99ea27c

Browse files
authored
Try #107:
2 parents 52edda7 + 00f56be commit 99ea27c

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
rust:
19-
- 1.60.0
19+
- 1.63.0
2020
- stable
2121
- beta
2222
steps:
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
matrix:
4242
rust:
43-
- 1.60.0
43+
- 1.63.0
4444
- stable
4545
- beta
4646
# - nightly
@@ -92,7 +92,7 @@ jobs:
9292
- uses: actions/checkout@v3
9393
- uses: dtolnay/rust-toolchain@master
9494
with:
95-
toolchain: 1.60.0
95+
toolchain: 1.63.0
9696
components: rustfmt
9797
- name: cargo-fmt
9898
run: cargo fmt -- --check

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![crates.io](https://img.shields.io/crates/v/rexpect.svg)](https://crates.io/crates/rexpect)
44
[![Released API docs](https://docs.rs/rexpect/badge.svg)](https://docs.rs/rexpect)
55
[![Master API docs](https://img.shields.io/badge/docs-master-2f343b.svg)](http://philippkeller.github.io/rexpect)
6-
[![MSRV](https://img.shields.io/badge/MSRV-1.60.0-blue)]
6+
[![MSRV](https://img.shields.io/badge/MSRV-1.63.0-blue)]
77

88
Spawn, control, and respond to expected patterns of child applications and
99
processes, enabling the automation of interactions and testing. Components

src/session.rs

-18
Original file line numberDiff line numberDiff line change
@@ -172,24 +172,6 @@ impl DerefMut for PtySession {
172172
}
173173

174174
/// Start a process in a tty session, write and read from it
175-
///
176-
/// # Example
177-
///
178-
/// ```
179-
///
180-
/// use rexpect::spawn;
181-
/// # use rexpect::error::Error;
182-
///
183-
/// # fn main() {
184-
/// # || -> Result<(), Error> {
185-
/// let mut s = spawn("cat", Some(1000))?;
186-
/// s.send_line("hello, polly!")?;
187-
/// let line = s.read_line()?;
188-
/// assert_eq!("hello, polly!", line);
189-
/// # Ok(())
190-
/// # }().expect("test failed");
191-
/// # }
192-
/// ```
193175
impl PtySession {
194176
fn new(process: PtyProcess, timeout_ms: Option<u64>) -> Result<Self, Error> {
195177
let f = process.get_file_handle()?;

0 commit comments

Comments
 (0)