Skip to content

Commit

Permalink
Remove lingering references to ImageOutputFormat (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Mar 23, 2024
1 parent c193acb commit 87cbef7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
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

0 comments on commit 87cbef7

Please sign in to comment.