fix saveless

This commit is contained in:
bendn 2023-09-05 12:37:04 +07:00
parent 82c597213b
commit fd41988c10
No known key found for this signature in database
GPG key ID: 0D9D3A2A3B2A93D6
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package] [package]
name = "fimg" name = "fimg"
version = "0.2.0" version = "0.2.1"
authors = ["bend-n <bend.n@outlook.com>"] authors = ["bend-n <bend.n@outlook.com>"]
license = "MIT" license = "MIT"
edition = "2021" edition = "2021"

View file

@ -239,6 +239,7 @@ impl<const CHANNELS: usize> Image<Vec<u8>, CHANNELS> {
macro_rules! save { macro_rules! save {
($channels:literal == $clr:ident ($clrhuman:literal)) => { ($channels:literal == $clr:ident ($clrhuman:literal)) => {
impl Image<Vec<u8>, $channels> { impl Image<Vec<u8>, $channels> {
#[cfg(feature = "save")]
#[doc = "Save this "] #[doc = "Save this "]
#[doc = $clrhuman] #[doc = $clrhuman]
#[doc = " image."] #[doc = " image."]