feeble attempt to fix docs.rs

This commit is contained in:
bendn 2023-09-25 19:03:44 +07:00
parent 5293fe3d77
commit 89b1596db2
No known key found for this signature in database
GPG key ID: 0D9D3A2A3B2A93D6
4 changed files with 4 additions and 4 deletions

View file

@ -1,12 +1,12 @@
[package]
name = "fimg"
version = "0.4.6"
version = "0.4.7"
authors = ["bend-n <bend.n@outlook.com>"]
license = "MIT"
edition = "2021"
description = "fast image operations"
repository = "https://github.com/bend-n/fimg"
exclude = ["src/cat.png", "src/small_cat.png", "benches/"]
exclude = ["tdata", "benches/"]
[dependencies]
png = { version = "0.17", features = ["unstable"], optional = true }

View file

@ -33,9 +33,9 @@ impl Nearest {
#[test]
fn test_nearest() {
let i = Image::<_, 3>::open("src/cat.png");
let i = Image::<_, 3>::open("tdata/cat.png");
assert_eq!(
unsafe { Nearest::scale(i.as_ref(), 268, 178) }.buffer,
Image::<_, 3>::open("src/small_cat.png").buffer
Image::<_, 3>::open("tdata/small_cat.png").buffer
);
}

View file

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

View file

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB