Skip to content

Commit

Permalink
Removed some compile warning, variable doesn't need to be mut
Browse files Browse the repository at this point in the history
  • Loading branch information
danigm committed Oct 21, 2017
1 parent ebed582 commit 999d298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ impl AppOp {
.get_object("rooms_tree_store")
.expect("Couldn't find rooms_tree_store in ui file.");

let mut r = self.rooms.get_mut(&roomid).unwrap();
let r = self.rooms.get_mut(&roomid).unwrap();
r.name = name.clone();

if roomid == self.active_room {
Expand All @@ -904,7 +904,7 @@ impl AppOp {
}

pub fn room_topic_change(&mut self, roomid: String, topic: String) {
let mut r = self.rooms.get_mut(&roomid).unwrap();
let r = self.rooms.get_mut(&roomid).unwrap();
r.topic = topic.clone();

if roomid == self.active_room {
Expand Down

0 comments on commit 999d298

Please sign in to comment.