Skip to content

Commit

Permalink
Erase unguaranteeable sync requirement, update deprecated CI runner (#3)
Browse files Browse the repository at this point in the history
This PR updates deprecated ubuntu runner, and erases an unguaranteeable
sync requirement

## Related PR
* #2

---------

Co-authored-by: Jubilee Young <workingjubilee@gmail.com>
  • Loading branch information
armallen and workingjubilee authored Jul 25, 2024
1 parent 3f7857e commit b74d2aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
jobs:
ci:
name: Format, lint, and test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: davidB/rust-cargo-make@v1
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ Easily add a `--input` and `--output` flags to CLIs using clap
cargo run --example copy -- --help
```


## LICENSE

Copyright © 2023 Swift Navigation

Distributed under the [MIT open source license](LICENSE).
Distributed under the [MIT open source license](LICENSE).
3 changes: 1 addition & 2 deletions examples/positional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

use anyhow::Result;

use clap::{Parser, CommandFactory};
use clap_io::{Input, Output};
use clap::Parser;

macro_rules! converter {
($name:ident) => {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct Input(Stream);

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

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

0 comments on commit b74d2aa

Please sign in to comment.