From 1551bf2a0643cc8aa71e03d9472b116f1662b661 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 30 Jun 2023 09:21:20 +0200 Subject: Update CI toolchain: 1.60.0 -> 1.63.0 Signed-off-by: Matthias Beyer --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3aec624..503da7b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: rust: - - 1.60.0 + - 1.63.0 - stable steps: - uses: actions/checkout@v3 @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.60.0 + toolchain: 1.63.0 - run: rustup component add rustfmt - name: cargo-fmt uses: actions-rs/cargo@v1 @@ -43,7 +43,7 @@ jobs: strategy: matrix: rust: - - 1.60.0 + - 1.63.0 - stable steps: - uses: actions/checkout@v3 @@ -69,7 +69,7 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master with: - toolchain: 1.60.0 + toolchain: 1.63.0 - uses: swatinem/rust-cache@v2 - run: rustup component add clippy - name: cargo-clippy -- cgit v1.2.3 From 8926a45d0efb4f3cf62361a9d5a91a35caaf9cf0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 30 Jun 2023 09:21:37 +0200 Subject: Add note about MSRV Signed-off-by: Matthias Beyer --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 74e7731..108b292 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,10 @@ you can write taskwarrior hooks without having to deal with the JSON import/export foo by simply using this crate. +# MSRV + +1.63.0 + # License task-hookrs - A Rust library for writing taskwarrior hooks and general interfacing with taskwarrior -- cgit v1.2.3 From 3d35c54bbfb8d83ee012b77948e6520a605e8281 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 30 Jun 2023 09:28:31 +0200 Subject: Fix clippy: Derive Eq as well if deriving PartialEq Signed-off-by: Matthias Beyer --- src/annotation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/annotation.rs b/src/annotation.rs index 6f5a4e0..c1498fa 100644 --- a/src/annotation.rs +++ b/src/annotation.rs @@ -11,7 +11,7 @@ use crate::date::Date; /// Annotation type for task annotations. /// Each annotation in taskwarrior consists of a date and a description, /// the date is named "entry", the description "description" in the JSON export. -#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, PartialEq)] +#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, Eq, PartialEq)] pub struct Annotation { entry: Date, description: String, -- cgit v1.2.3 From 5a201c4c0b9b7b080a9e2146b9cdc39210d125e9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 30 Jun 2023 09:28:53 +0200 Subject: Fix clippy: Remove needless binding Signed-off-by: Matthias Beyer --- src/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/task.rs b/src/task.rs index 46690ce..53e26b1 100644 --- a/src/task.rs +++ b/src/task.rs @@ -647,7 +647,7 @@ mod test { use uuid::{uuid, Uuid}; fn mklogger() { - let _ = env_logger::init(); + env_logger::init(); log::debug!("Env-logger enabled"); } -- cgit v1.2.3