Merge pull request #10 from hjr3/read_image_blob-as_ref

Change MagickWand::read_image_blob to use ref
This commit is contained in:
Nathan Fiedler
2016-06-25 15:29:07 -07:00
committed by GitHub

View File

@ -81,7 +81,7 @@ impl MagickWand {
}
/// Read the image data from the vector of bytes.
pub fn read_image_blob(&self, data: Vec<u8>) -> Result<(), &'static str> {
pub fn read_image_blob(&self, data: &Vec<u8>) -> Result<(), &'static str> {
let int_slice = &data[..];
let size = data.len();
let result = unsafe {