Skip to content

Commit 94a0916

Browse files
committed
MSRV is now 1.56
1 parent 879bbdb commit 94a0916

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
run: make test
1919

2020
build-stable:
21-
name: Test on 1.42.0
21+
name: Test on 1.56.0
2222
runs-on: ubuntu-latest
2323

2424
steps:
2525
- uses: actions/checkout@v1
2626
- uses: actions-rs/toolchain@v1
2727
with:
28-
toolchain: 1.42.0
28+
toolchain: 1.56.0
2929
profile: minimal
3030
override: true
3131
- name: Test

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ keywords = ["proc", "spawn", "subprocess"]
1414
readme = "README.md"
1515
autoexamples = true
1616
autotests = true
17-
rust-version = "1.42.0"
17+
rust-version = "1.56.0"
1818

1919
[package.metadata.docs.rs]
2020
all-features = true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://github.com/mitsuhiko/procspawn/workflows/Tests/badge.svg?branch=master)](https://github.com/mitsuhiko/procspawn/actions?query=workflow%3ATests)
44
[![Crates.io](https://img.shields.io/crates/d/procspawn.svg)](https://crates.io/crates/procspawn)
55
[![Documentation](https://docs.rs/procspawn/badge.svg)](https://docs.rs/procspawn)
6-
[![rustc 1.42.0](https://img.shields.io/badge/rust-1.42%2B-orange.svg)](https://img.shields.io/badge/rust-1.42%2B-orange.svg)
6+
[![rustc 1.56.0](https://img.shields.io/badge/rust-1.56%2B-orange.svg)](https://img.shields.io/badge/rust-1.56%2B-orange.svg)
77

88
This crate provides the ability to spawn processes with a function similar
99
to `thread::spawn`. Instead of closures it passes [`serde`](https://serde.rs/)

src/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ fn bootstrap_ipc(token: String, config: &ProcConfig) {
253253
Ok(sender) => sender,
254254
Err(err) => {
255255
if !is_benign_bootstrap_error(&err) {
256-
Err::<(), _>(err).expect("could not bootstrap ipc connection");
256+
panic!("could not bootstrap ipc connection: {:?}", err);
257257
}
258258
process::exit(1);
259259
}
@@ -349,7 +349,7 @@ unsafe fn run_func<A, R>(
349349
// waited for the call, so we just ignore it.
350350
}
351351
} else {
352-
Err::<(), _>(err).expect("could not send event over ipc channel");
352+
panic!("could not send event over ipc channel: {:?}", err);
353353
}
354354
}
355355
}

src/proc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl Builder {
232232
env::current_exe()?
233233
};
234234
let mut child = process::Command::new(me);
235-
child.envs(self.common.vars.into_iter());
235+
child.envs(self.common.vars);
236236
child.env(ENV_NAME, token);
237237

238238
#[cfg(unix)]

0 commit comments

Comments
 (0)