Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erase unguaranteeable sync requirement, update deprecated CI runner #3

Merged
merged 4 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading