Skip to content

Commit

Permalink
Turn .as_ref() calls into .to_string() calls to remove type ambiguity.
Browse files Browse the repository at this point in the history
Fixes #47
  • Loading branch information
Fabian Kössel committed Mar 13, 2017
1 parent 27fb1eb commit aa00ec8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@ impl<T: Write> ProgressBar<T> {
let rema_count = size - curr_count;
base = self.bar_start.clone();
if rema_count > 0 && curr_count > 0 {
base = base + repeat!(self.bar_current.as_ref(), curr_count - 1) +
base = base + repeat!(self.bar_current.to_string(), curr_count - 1) +
&self.bar_current_n;
} else {
base = base + repeat!(self.bar_current.as_ref(), curr_count);
base = base + repeat!(self.bar_current.to_string(), curr_count);
}
base = base + repeat!(self.bar_remain.as_ref(), rema_count) + &self.bar_end;
base = base + repeat!(self.bar_remain.to_string(), rema_count) + &self.bar_end;
}
}
}
Expand Down

0 comments on commit aa00ec8

Please sign in to comment.