Skip to content

Commit b74d2aa

Browse files
Erase unguaranteeable sync requirement, update deprecated CI runner (#3)
This PR updates deprecated ubuntu runner, and erases an unguaranteeable sync requirement ## Related PR * #2 --------- Co-authored-by: Jubilee Young <[email protected]>
1 parent 3f7857e commit b74d2aa

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626
jobs:
2727
ci:
2828
name: Format, lint, and test
29-
runs-on: ubuntu-18.04
29+
runs-on: ubuntu-latest
3030
steps:
3131
- uses: actions/checkout@v2
3232
- uses: davidB/rust-cargo-make@v1

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ Easily add a `--input` and `--output` flags to CLIs using clap
88
cargo run --example copy -- --help
99
```
1010

11-
1211
## LICENSE
1312

1413
Copyright © 2023 Swift Navigation
1514

16-
Distributed under the [MIT open source license](LICENSE).
15+
Distributed under the [MIT open source license](LICENSE).

examples/positional.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919

2020
use anyhow::Result;
2121

22-
use clap::{Parser, CommandFactory};
23-
use clap_io::{Input, Output};
22+
use clap::Parser;
2423

2524
macro_rules! converter {
2625
($name:ident) => {

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub struct Input(Stream);
9898

9999
impl Input {
100100
/// Open the input stream.
101-
pub fn open(self) -> io::Result<Box<dyn Read + Sync + 'static>> {
101+
pub fn open(self) -> io::Result<Box<dyn Read + 'static>> {
102102
match self.0 {
103103
Stream::File(_) => {
104104
let file = self.open_file().unwrap()?;
@@ -194,7 +194,7 @@ pub struct Output(Stream);
194194

195195
impl Output {
196196
/// Open the output stream.
197-
pub fn open(self) -> io::Result<Box<dyn Write + Sync + 'static>> {
197+
pub fn open(self) -> io::Result<Box<dyn Write + 'static>> {
198198
match self.0 {
199199
Stream::File(_) => {
200200
let file = self.open_file().unwrap()?;

0 commit comments

Comments
 (0)