Skip to content

Commit

Permalink
set version = 0.14.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Jul 5, 2024
1 parent d1b3426 commit 0695f03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "qrcode"
description = "QR code encoder in Rust"
license = "MIT OR Apache-2.0"
version = "0.14.0"
version = "0.14.1"
edition = "2021"
rust-version = "1.67.1"
authors = ["kennytm <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Cargo.toml

```toml
[dependencies]
qrcode = "0.13"
qrcode = "0.14.1"
```

The default settings will depend on the `image` crate. If you don't need image generation capability, disable the `default-features`:

```toml
[dependencies]
qrcode = { version = "0.13", default-features = false }
qrcode = { version = "0.14.1", default-features = false }
```

Example
Expand Down
4 changes: 2 additions & 2 deletions src/render/pic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ impl RenderCanvas for Canvas {
}

fn draw_dark_rect(&mut self, left: u32, top: u32, width: u32, height: u32) {
write!(self.pic, "p({left},{top},{width},{height})\n").unwrap();
writeln!(self.pic, "p({left},{top},{width},{height})").unwrap();
}

fn into_image(mut self) -> String {
fn into_image(self) -> String {
self.pic
}
}

0 comments on commit 0695f03

Please sign in to comment.