From 1b2d7010affcf96a682116e906ebb121d40a04ed Mon Sep 17 00:00:00 2001 From: "Herman J. Radtke III" Date: Sat, 25 Jun 2016 09:47:09 -0700 Subject: [PATCH] Change MagickWand::read_image_blob to use ref Breaking change. The `read_image_blob` function does not need to take ownership of the image byte array. --- src/wand/magick.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wand/magick.rs b/src/wand/magick.rs index f3daf24..0861428 100644 --- a/src/wand/magick.rs +++ b/src/wand/magick.rs @@ -81,7 +81,7 @@ impl MagickWand { } /// Read the image data from the vector of bytes. - pub fn read_image_blob(&self, data: Vec) -> Result<(), &'static str> { + pub fn read_image_blob(&self, data: &Vec) -> Result<(), &'static str> { let int_slice = &data[..]; let size = data.len(); let result = unsafe {