Skip to content

Commit

Permalink
Merge pull request #1167 from mitchmindtree/unnecessary_mut
Browse files Browse the repository at this point in the history
Remove unnecessary `mut` from `self` binding in `Ui::draw_if_changed`
  • Loading branch information
mitchmindtree committed Apr 26, 2018
2 parents d595b2c + 19dd1a9 commit d3b8242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "conrod"
version = "0.59.0"
version = "0.59.1"
authors = [
"Mitchell Nordine <mitchell.nordine@gmail.com>",
"Sven Nilsen <bvssvni@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ impl Ui {
/// This ensures that conrod is drawn to each buffer in the case that there is buffer swapping
/// happening. Let us know if you need finer control over this and we'll expose a way for you
/// to set the redraw count manually.
pub fn draw_if_changed(&mut self) -> Option<render::Primitives> {
pub fn draw_if_changed(&self) -> Option<render::Primitives> {
if self.redraw_count.load(atomic::Ordering::Relaxed) > 0 {
return Some(self.draw())
}
Expand Down

0 comments on commit d3b8242

Please sign in to comment.