From 89b1596db2edc776d794d27da33fa11bddc80143 Mon Sep 17 00:00:00 2001 From: bendn Date: Mon, 25 Sep 2023 19:03:44 +0700 Subject: [PATCH] feeble attempt to fix docs.rs --- Cargo.toml | 4 ++-- src/scale.rs | 4 ++-- {src => tdata}/cat.png | Bin {src => tdata}/small_cat.png | Bin 4 files changed, 4 insertions(+), 4 deletions(-) rename {src => tdata}/cat.png (100%) rename {src => tdata}/small_cat.png (100%) diff --git a/Cargo.toml b/Cargo.toml index 4b07cc9..ac759ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "fimg" -version = "0.4.6" +version = "0.4.7" authors = ["bend-n "] 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 } diff --git a/src/scale.rs b/src/scale.rs index 0ba614b..09fdf20 100644 --- a/src/scale.rs +++ b/src/scale.rs @@ -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 ); } diff --git a/src/cat.png b/tdata/cat.png similarity index 100% rename from src/cat.png rename to tdata/cat.png diff --git a/src/small_cat.png b/tdata/small_cat.png similarity index 100% rename from src/small_cat.png rename to tdata/small_cat.png