Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoshid committed Sep 22, 2018
1 parent 2b7a63a commit 10be0b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/rope/src/rope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -758,8 +758,7 @@ impl<'a> From<&'a Rope> for String {

impl fmt::Display for Rope {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut ci = self.iter_chunks(..);
for s in ci.next() {
for s in self.iter_chunks(..) {
write!(f, "{}", s)?;
}
Ok(())
Expand Down

0 comments on commit 10be0b0

Please sign in to comment.