Merge pull request #10 from hjr3/read_image_blob-as_ref
Change MagickWand::read_image_blob to use ref
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user