kornelski / dssim

Image similarity comparison simulating human perception (multiscale SSIM in Rust)
https://kornel.ski/dssim
GNU Affero General Public License v3.0
1.09k stars 70 forks source link

blur.rs: cannot borrow `dst` as mutable, as it is not declared as mutable #77

Closed LigH-de closed 4 years ago

LigH-de commented 4 years ago

Compiling in MSYS2/MinGW using media-autobuild suite:

   Compiling dssim v2.11.1 (E:\MABS\build\dssim-git)
error[E0596]: cannot borrow `dst` as mutable, as it is not declared as mutable
   --> src\blur.rs:132:19
    |
118 |     pub fn do_blur(src: ImgRef<f32>, dst: ImgRefMut<f32>) {
    |                                      --- help: consider changing this to be mutable: `mut dst`
...
132 |         let dst = dst.buf_mut();
    |                   ^^^ cannot borrow as mutable

logs.zip collected by MABS