Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove lingering references to ImageOutputFormat #2176

Merged
merged 1 commit into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1044,11 +1044,8 @@ where
{
/// Writes the buffer to a writer in the specified format.
///
/// Assumes the writer is buffered. In most cases,
/// you should wrap your writer in a `BufWriter` for best performance.
///
/// See [`ImageOutputFormat`](enum.ImageOutputFormat.html) for
/// supported types.
/// Assumes the writer is buffered. In most cases, you should wrap your writer in a `BufWriter`
/// for best performance.
pub fn write_to<W>(&self, writer: &mut W, format: ImageFormat) -> ImageResult<()>
where
W: std::io::Write + std::io::Seek,
Expand Down
13 changes: 4 additions & 9 deletions src/dynimage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,16 +1148,11 @@ pub fn save_buffer_with_format(

/// Writes the supplied buffer to a writer in the specified format.
///
/// The buffer is assumed to have the correct format according
/// to the specified color type.
/// This will lead to corrupted writers if the buffer contains
/// malformed data.
///
/// See [`ImageOutputFormat`](enum.ImageOutputFormat.html) for
/// supported types.
/// The buffer is assumed to have the correct format according to the specified color type. This
/// will lead to corrupted writers if the buffer contains malformed data.
///
/// Assumes the writer is buffered. In most cases,
/// you should wrap your writer in a `BufWriter` for best performance.
/// Assumes the writer is buffered. In most cases, you should wrap your writer in a `BufWriter` for
/// best performance.
pub fn write_buffer_with_format<W: Write + Seek>(
buffered_writer: &mut W,
buf: &[u8],
Expand Down
Loading