hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.
BSD 2-Clause "Simplified" License
5.09k stars 212 forks source link

fix(cover): Add mut to fix incorrect get of windowsize in cover #1542

Closed antonnyst closed 1 month ago

antonnyst commented 1 month ago

Describe your changes

Something seems to have broken the return of the variables from the unsafe block, leading to division by zero. By making the query variable mutable the return works.

Issue ticket number and link

1528

Checklist before requesting a review