Skip to content

Commit

Permalink
fix: add imports
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Feb 14, 2024
1 parent 72ec0fa commit be59b0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ apng is animated png encoder for Rust, and made in pure Rust.
## Example usage

```rust
use apng::{Encoder, Frame, PNGImage};
use std::fs::File;
use std::io::BufWriter;
use std::path::Path;

fn main() {
let files = vec![
"rust_logo1.png",
Expand Down
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ apng is animated png encoder for Rust, and made in pure Rust.
# Example
```rust
```no_run
use apng::{Encoder, Frame, PNGImage};
use std::fs::File;
use std::io::BufWriter;
use std::path::Path;
fn main() {
let files = vec![
"rust_logo1.png",
Expand Down

0 comments on commit be59b0b

Please sign in to comment.