mirror of
https://github.com/bend-n/fimg.git
synced 2024-12-22 10:28:21 -06:00
feeble attempt to fix docs.rs
This commit is contained in:
parent
5293fe3d77
commit
89b1596db2
|
@ -1,12 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "fimg"
|
name = "fimg"
|
||||||
version = "0.4.6"
|
version = "0.4.7"
|
||||||
authors = ["bend-n <bend.n@outlook.com>"]
|
authors = ["bend-n <bend.n@outlook.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "fast image operations"
|
description = "fast image operations"
|
||||||
repository = "https://github.com/bend-n/fimg"
|
repository = "https://github.com/bend-n/fimg"
|
||||||
exclude = ["src/cat.png", "src/small_cat.png", "benches/"]
|
exclude = ["tdata", "benches/"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
png = { version = "0.17", features = ["unstable"], optional = true }
|
png = { version = "0.17", features = ["unstable"], optional = true }
|
||||||
|
|
|
@ -33,9 +33,9 @@ impl Nearest {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_nearest() {
|
fn test_nearest() {
|
||||||
let i = Image::<_, 3>::open("src/cat.png");
|
let i = Image::<_, 3>::open("tdata/cat.png");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
unsafe { Nearest::scale(i.as_ref(), 268, 178) }.buffer,
|
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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.4 MiB |
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Loading…
Reference in a new issue