Making self mutable

This commit is contained in:
Nat Quayle Nelson
2018-05-25 16:49:38 -04:00
parent 3daa8e77e8
commit 15a2fd7d1a

View File

@ -241,7 +241,7 @@ impl MagickWand {
/// Rotate the currently selected image by the given number of degrees,
/// filling any empty space with the background color of a given PixelWand
pub fn rotate_image(&self, background: &PixelWand, degrees: f64) -> Result<(), &'static str> {
pub fn rotate_image(&mut self, background: &PixelWand, degrees: f64) -> Result<(), &'static str> {
match unsafe { bindings::MagickRotateImage(self.wand, background.wand, degrees) } {
bindings::MagickBooleanType::MagickTrue => Ok(()),
_ => Err("failed to rotate image")