Skip to content

Commit

Permalink
Merge pull request #12 from Danieroner/fix-docs
Browse files Browse the repository at this point in the history
Fix docs
  • Loading branch information
Danieroner committed Mar 12, 2024
2 parents 1da8bb7 + 2f459aa commit bcd83bd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
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

0 comments on commit bcd83bd

Please sign in to comment.