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

Fix docs #12

Merged
merged 2 commits into from
Mar 12, 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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/sync/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down
4 changes: 2 additions & 2 deletions src/sync/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading