From dc6ec3477a4f29241f28cee3851640f9e450dc39 Mon Sep 17 00:00:00 2001 From: Arnaud Mallen Date: Thu, 25 Jul 2024 17:16:40 +0200 Subject: [PATCH 1/4] Use latest ubuntu --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 18b61ae..a13e016 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 From 4c1a79c975137d27bd007030c942f9d83ea959da Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Fri, 5 Jul 2024 13:49:32 -0700 Subject: [PATCH 2/4] Erase unguaranteeable Sync requirement --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index ffcc6d3..31a6347 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,7 +98,7 @@ pub struct Input(Stream); impl Input { /// Open the input stream. - pub fn open(self) -> io::Result> { + pub fn open(self) -> io::Result> { match self.0 { Stream::File(_) => { let file = self.open_file().unwrap()?; @@ -194,7 +194,7 @@ pub struct Output(Stream); impl Output { /// Open the output stream. - pub fn open(self) -> io::Result> { + pub fn open(self) -> io::Result> { match self.0 { Stream::File(_) => { let file = self.open_file().unwrap()?; From 48ea1c936577592c321e9e324725ec5f17399c59 Mon Sep 17 00:00:00 2001 From: Arnaud Mallen Date: Thu, 25 Jul 2024 17:38:45 +0200 Subject: [PATCH 3/4] Fix lints --- examples/positional.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/positional.rs b/examples/positional.rs index a9c1931..6d8a513 100644 --- a/examples/positional.rs +++ b/examples/positional.rs @@ -19,8 +19,7 @@ use anyhow::Result; -use clap::{Parser, CommandFactory}; -use clap_io::{Input, Output}; +use clap::Parser; macro_rules! converter { ($name:ident) => { From 711aa7112ff03b0a6ac59ddede8dce339b29c36d Mon Sep 17 00:00:00 2001 From: Arnaud Mallen Date: Thu, 25 Jul 2024 17:51:34 +0200 Subject: [PATCH 4/4] Fix Markdown lints --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 9467685..3afe621 100644 --- a/README.md +++ b/README.md @@ -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). \ No newline at end of file +Distributed under the [MIT open source license](LICENSE).