Skip to content

Commit

Permalink
debug_struct is not supported on rust stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Jul 15, 2015
1 parent f96b110 commit f96ff67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
use std::io;
use std::io::{Read,BufRead};
use std::iter::{repeat,Iterator};
use std::fmt;
use std::cmp;
use std::iter;
//use std::fmt;
//use std::str;

pub struct AccReader<R> {
Expand Down Expand Up @@ -125,14 +125,14 @@ impl<R: Read> BufRead for AccReader<R> {
}
}

impl<R> fmt::Debug for AccReader<R> where R: fmt::Debug {
/*impl<R> fmt::Debug for AccReader<R> where R: fmt::Debug {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
fmt.debug_struct("AccReader")
.field("reader", &self.inner)
.field("buffer", &format_args!("{}/{}", self.cap - self.pos, self.buf.len()))
.finish()
}
}
}*/

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit f96ff67

Please sign in to comment.