From 4861748a7f68411fed0d50243e2897bfa29dfea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Pereira?= Date: Mon, 11 Mar 2024 21:14:18 -0400 Subject: [PATCH 1/2] ci: update rust to version 1.75.0 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51b4dae..2df3064 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,10 @@ jobs: - name: Install rust uses: hecrj/setup-rust-action@v1 with: - rust-version: 1.64.0 + rust-version: 1.75.0 - name: Build - run: cargo build -v --release + run: cargo build --verbose --release - name: Test - run: cargo test -v --release + run: cargo test --verbose --release --features async From 2f459aac3e77a10883366e76321419f04bb16c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Pereira?= Date: Mon, 11 Mar 2024 21:14:52 -0400 Subject: [PATCH 2/2] chore: fix documentation --- README.md | 4 ++-- src/sync/client.rs | 4 ++-- src/sync/source.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8771c42..e69298c 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,8 @@ tinify-rs = { version = "1.3.0", features = ["async"] } - Compress from a file ```rust -use tinify::Tinify; -use tinify::TinifyError; +use tinify::sync::Tinify; +use tinify::error::TinifyError; fn main() -> Result<(), TinifyError> { let key = "tinify api key"; diff --git a/src/sync/client.rs b/src/sync/client.rs index 81795ba..b369613 100644 --- a/src/sync/client.rs +++ b/src/sync/client.rs @@ -49,8 +49,8 @@ impl Client { /// # Examples /// /// ``` - /// use tinify::Tinify; - /// use tinify::TinifyError; + /// use tinify::sync::Tinify; + /// use tinify::error::TinifyError; /// use std::fs; /// /// fn main() -> Result<(), TinifyError> { diff --git a/src/sync/source.rs b/src/sync/source.rs index 3a3c91f..6d4efe7 100644 --- a/src/sync/source.rs +++ b/src/sync/source.rs @@ -188,10 +188,10 @@ impl Source { /// # Examples /// /// ``` - /// use tinify::Tinify; + /// use tinify::sync::Tinify; + /// use tinify::error::TinifyError; /// use tinify::convert::Color; /// use tinify::convert::Type; - /// use tinify::TinifyError; /// /// fn main() -> Result<(), TinifyError> { /// let _ = Tinify::new()