Skip to content

Commit

Permalink
Deprecate the old img method, use img_from_* instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Sep 30, 2024
1 parent f4beccf commit cc93358
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/img.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ pub struct Img {
content_node: Option<NodeId>,
}

#[deprecated]
pub fn img(image: impl Fn() -> Vec<u8> + 'static) -> Img {
img_from_bytes(image)
}
Expand Down

0 comments on commit cc93358

Please sign in to comment.